Interviewing for a programming position is no easy task. In addition to the usual “tell me about your work at your last employer” and “tell me about a time you had to deal with [X]” kinds of questions, there’s always the coding questions. These questions are designed to establish and test the boundaries of the interviewee’s knowledge on a given topic.
Personally, I find programming questions during an interview tough and stressful. I’m just not that good at thinking under pressure. I figured the best way to remedy this is to time myself (10 minutes) and practice working through the kinds of problems that I may be presented with during an interview. I did some digging and found an awesome repository of interview questions that covers a wide variety of topics. From the README:
This is my repo full of code problems that I have completed prior to or during an interview, as well as general problem snippets. I hope that all these problems (and solutions) are useful to others for practice and review. Feel free to contribute any solutions and optimisations, and add your own problems that you find as well, as I would love to see them.
Seriously, there’s a ton of problems in there to practice on. Everything from the standard fibonacci problem to problems involving algorithms and linked lists.
Do you have a particular programming problem that stumped you during an interview? Make a pull request for the repo and tell me about it in the comments below.
Photo Credit: Raster