3 ms·
Asking you to write code that's basically right is sort of stupid, but not that bad. Asking for syntax-perfect code is just stupid hazing; ideally you'll have a
by itamarst 10y ago
Asking you to write code that's basically right is sort of stupid, but not that bad. Asking for syntax-perfect code is just stupid hazing; ideally you'll have a good interviewer that wants to see how you solve a problem.
If you have issues with these kinds of interviews here's my advice: write tests on the whiteboard, and explain you'll run the tests on the code after first pass. That way you don't get nitpicked to death over typos or simple mistakes, and you look like a careful programmer.
See https://codewithoutrules.com/2016/04/04/interview-puzzles/ https://codewithoutrules.com/2016/04/04/interview-puzzles/ for full writeup.