Re:Embarrassing code I wrote under stress at a job interview
by celadon on Saturday May 02, 2015 @08:43PM
(#9479237)
For some companies/teams/hiring managers/interviews, having someone who can reason about big-O complexity and design their own algorithms is important and necessary. There won't always be problems that have a preexisting algorithmic solution.
Give the candidate a research paper in PDF, then ask them to implement the algorithm described there in code.
You get the same feedback on whether they can actually code, and what kind of code they write, but it takes the pressure off having to think of what kind of algorithm to use, what the big O complexity of it is, and a thousand other factors that will probably never relate to what their day job will consist of.