Hacker News new | ask | show | jobs
by rv11 3350 days ago
If you are just asking Algo and probably pseudo code, these questions might help, but if you ask to write the proper code with boundary conditions etc, that makes it difficult even if you know the Algo. Of course I am assuming that no one memorizes the code ;).
1 comments

I used to give people a description of how an algorithm was implemented, and ask them to write it out in code. Specifically we'd take the conversation to boundary conditions, failure conditions, testing, etc, from there. I was reasonably happy with the outcome.