White Boarding is an integral part of the interview process, and something you should practice regularly.
Remember to practice good white boarding habits.
- Ask clarifying questions (edge case, exp inputs and output)
- Talk through different approaches.
- Continue to communicate your thought process even if you don't know the answer.
- Psuedo code a solution
- Write the real code (this step should only take you a few minutes as the rest of the work has already happend)
- Test your code. Walk through it line by line testing different sample outputs.
- Make assumptions
- Be overly queit
- Give up.