Ask HN: How do you deal with performance anxiety during interviews?
For an example in an interview today I was writing some code and wrote if (x > 0 || x < 0) instead of if (x !=0) ... I have been programing for over 12 years and I don't think I have ever made this mistake in real life.
Later on in the interview the interviewer asked a question that made me smile when she asked it because I knew I knew how to do it. Yet half way through after solving the hardest part of it I blanked out and spent the next 15 to 20 minutes going in circles with the interviewer giving me incredibly obvious hints. The answer was on the tip of my tongue but I just couldn't get it out.
This is not the first time this has happened to me. It happens to a greater or lesser degree every time I have a whiteboard or shared online coding interview.
I can do paper or take home tests fine. I can talk about my past experience fine. I can ask good questions. But I never feel like I am able to code to my normal abilities during a whiteboard test.
Should I try to get companies to give me a paper test? Or should I keep slogging through these whiteboard ones with the hopes that eventually I'll get enough practice that I'll get over it? Has anyone else here been able to overcome a similar problem?
27 comments
[ 3.0 ms ] story [ 64.9 ms ] threadRepeating this exercise at least once daily has produced real results for me, and helped me get comfortable thinking and speaking about algorithms outside of my normal operating environment (i.e. in front of a keyboard ;).
Like I said though I knew that I had done this question before and knew how to do it. Just like I knew that (x > 0 || x < 0) is the same thing as (x != 0). I think its the actual being in front of a stranger part that I need to practice most.
Do you think going through all the questions on Interviewcake prepared you well for interviews?
I've been going through them and I either find them to be very easy, or very hard. Not much in between. Actually, come to think of it, that's usually how interview questions go for me, too.
Good luck!
Another idea: Find a local meetup group or something similar where you can give a talk about performance anxiety during interviews.
Just tell your story to others and you'll get invaluable feedback. That said I know you asked here for advice, but discussing on a forum is too asynchronous. More like a take home test as you already described.
Obviously, don't go to an interview every month, but don't wait until you absolutely must have a new job. Get the feel of a few places, and if you turn them down then there's no harm done.
I have always just powered through because I have found that once it passes I return fully. For me it is about some magic comfort level. Once I get there and it usually takes a little time(weeks not minutes or hours) this isn't an issue anymore. Interviews are the worst because I don't have that time and they are usually with people you don't know, which is at least part of the trigger.
I didn't want to use any medication to treat it, but I have helped to manage it. For me an exhaustive workout a few hours before the interview helps. The other thing is diet, in my case, if I focus on high-protein and low carb and that also seems to help.
These aren't recommendations, but I relate, and I thought it might be helpful to look at broad approach to managing it on your end.
So, are you sure your failure is not due to external elements like mine (which was one off fyi)?
From what I see doing interview training for a living: more practice is the key. Practice with mock interviews until you reach a point of (almost) de-sensitization.
But before you take mock interviews, you must prepare. Otherwise the feedback and the experience is not very useful. Do a number of problems and a variety of problems from numerous sources available. Only then do mock interviews. Preferably with experienced engineers. Use pramp.com for free mock interviews.
The process can take months, but you're bound to get better that way. Practice is the only way anybody gets better at anything, anyway.
Also note, that this interview practice is going to be useful to you in your daily work also. Training for interviews is that beautiful hack, that has dividends in a number of different ways.
For more details: https://codewithoutrules.com/2016/04/04/interview-puzzles/
Was presented with a simple recursion problem but I completely blanked out even with the interviewer nudging me all along.
I was able to write it on my half hour bus ride home...
After a few seconds of this, I come back to the problem and usually am able to do at least slightly better. It's like power cycling your brain after it gets stuck.