Things to keep in mind for white board interviews
6499

Hi @administrators @contributors @Global-Moderators

After giving a few onsites,
I've realized that writing code on white board is completely different from typing it on an editor. Firstly because, I type way faster than I write and secondly I can't keep adding lines in between, so the first line has to be my best line of code, and lastly there's not enough space!

What are some of the things I should keep in mind before I write my code, so that I make sure I make minimal changes once I write?

Any tips/tricks or suggestions are welcome! I will consolidate the responses, and update here.

Few things I have learned.

  1. It's very VERY important to write code on a paper. You can get better only if you practice hard on this.
  2. When you're coding online, every time you hit backspace, it's gonna hurt in your real interview. This means you'll have to erase and rewrite. Forget reordering of the code, that'll mess up the whole white board.
  3. When practicing on leetcode or anywhere else, try to make sure that the first time you type is your best line of code.
  4. Use short variables, smaller text, and make sure you have complete picture before you start writing the code. Leave extra space to declare additional variables in case needed later.

For me it took about 50-60% additional time to write simple binary search on paper compared to coding the same on editor.

Comments (7)