Seriously, been working as a software developer for 9 years now and never passed a single coding test.
The jobs I got were always the ones giving me weekend projects or just no coding test at all.
I have a job opportunity that looks exciting but they sent me this coding test link and I know I’m gonna fail for sure. Any tips aside from the obvious (practicing in advance on leetcode etc)?
No, not if they already had a “correct” solution.
It’s normal to know the answer you’re looking for before you ask the question, and they thought they did in this case.
Yes. The problem was the interviewer wasn’t prepared for a different correct answer.