Best way to practice whiteboard coding?

Hey All

So for my last onsite, I was lucky enough to get some actual feedback about my performance. The interviewers said that my communication skills for explaining my thought process and why I chose the DS/algos I did to solve the problem were really good.

However, they said that I seemed to have trouble implementing code fast and well enough to convert my ideas to code. I've decided to buy a whiteboard to practice coding at home, but I feel that one of the main reasons I seem to brain fart writing code is because I'm nervous and have to explain my steps as I go along.

Other than just writing code often to get used to writing code to solve Leetcode questions on the spot and on the whiteboard, does anyone have any resources or ideas on the best way to practice this part of the interview?

Thanks!

Posted Jan 31, 2017, 8:33 PM UTC

19
kephaelIntern•

Just do LeetCode without using an IDE or looking at solutions unless you're really stuck. You need a firm grasp of the language's syntax in order to implement the data structures and algorithms.

3
DanteAtWorkOPSoftware Engineer•

I have a pretty firm grasp, I'm just bad about making changes mid stream and then implementing the improvement. I make mistakes making the change or lose my place and I think it makes me look flustered and it wastes time. I think I just need to practice so I work more efficiently and make less mistakes.

Thanks for the advice!

1
FlameDraResearch Assistant•

..they said that I seemed to have trouble implementing code fast and well enough to convert my ideas to code...

If thats the issue, then you should be working through problems with an IDE and compiler and checking your results as you solve problems.

In order get better at whiteboards, find 2 other people who are also practicing interviewing and do whiteboard coding rounds with them.

2
DanteAtWorkOPSoftware Engineer•

I have one other friend who might be able to help, but I can't really think of a second person.

I don't think a compiler and IDE are the issue since if you don't remember exact syntax or APIs, generally the interviewer is fine with helping you out as long as you explain what the method you are looking for does. They even go so far as to give you a magical helper function which might do some heavy lifting so you don't have to code out that tedious part.

1
khoawala•

I found it extremely helpful to do leetcode with a friend. We often describe our thought process to each other and slowly it just become more natural as we do more problems.

2
DanteAtWorkOPSoftware Engineer•

I have a friend at work who might be able to help. He's also kind of looking for a new job so we could probably take turns. Thanks!

1
brunhil•

Step 1) Buy Whiteboard Step 2) Look up problems to solve on Leetcode, HackerRank, etc. Step 3) Code solution on whiteboard

Sorry for the smart@$$ response :)

-1
DanteAtWorkOPSoftware Engineer•

As I wrote in my post, I already plan on doing this. I was curious if people had other ideas as to how to improve.

1
brunhil•

Step 1) Buy Whiteboard Step 2) Look up problems to solve on Leetcode, HackerRank, etc. Step 3) Code solution on whiteboard

-1