The biggest mistake we see candidates make is not approaching the problem properly.
If I see you perform the following steps well, I will advocate to hire you. And most interviewers will too.
1. Write
E
xamples and Clarify the Question: You need to write examples, and in the process, ask questions that unearth the actual problem the interviewer wants you to solve.
2. Come up withS
olutions: Come up with solutions and explain them to the interviewer, and once the interviewer seems to settle on one,write down simple steps
, not more than a few lines.Doing this makes it clear
(to both of you) what you will code for the rest of the interview
3. Write downT
est cases: When an interviewer sees you do this, they know you are legit. Quickly jot down key test cases.
4. WriteC
ode: Write the actual code. Make liberal use of helper functions
5.V
erify code and test cases: Once you are done, make sure you step through the code and make sure it w