2 ms·
One technique I've found helpful is starting by writing tests for the interview puzzle (on the whiteboard), and then explaining that I will check these tests on
by itamarst 10y ago
One technique I've found helpful is starting by writing tests for the interview puzzle (on the whiteboard), and then explaining that I will check these tests once I have a solution. That means if I get stuck or just have a bug I'm not immediately interrupted by interviewer, and the tests provide a way of debugging stuff in a structured way.
For more details: https://codewithoutrules.com/2016/04/04/interview-puzzles/ https://codewithoutrules.com/2016/04/04/interview-puzzles/