by mindcrime · 10y ago · 0 comments
11:00 to 12:00: Computer Science and Algorithms
Do you really need a full hour to tell if somebody has a good basic grasp of CS and algorithms? I can't see it. At least not in the best case. The way I'd suggest doing it is this: Ask a question that can result in a "1 question yes". That is, pick a sufficiently advanced / interesting algorithm, and ask questions about it, and/or ask the candidate to implement it. If they pass on that, move on from CS/algorithms to something else. If not, move to the 2nd choice algorithm, and repeat. Do that for a few iterations. This way you only fill a full hour if the candidate forces you to dig really deep into your list of topics.
The same methodology could be applied to the other domains as well.
Even implementing something simple and well known (like a breadth first search for example) on the white board can take an hour, if you are discussing it as you go along, and the algorithm has to be tailored and optimized to fit the interviewer's question.
Sure, you could spend all day or all week talking about it. But the question is, do you need to, and is it a useful thing to do in a job interview setting. But I'm biased here, because I'm generally not a fan of day long job interviews. I don't think they're necessary or practical, at least for most roles.
If it's a whiteboard thing, then don't expect a detailed, working implementation in code. Ask for a sketch / high level overview / pseudo-code that shows the candidate understand it well enough that you can infer that they could implement it with a compiler / google / book / etc.
OR
If you want an implementation, give them a machine, let them use their language of choice, use google, etc., and let them actually code it up, making and fixing errors as they go, etc. I actually like this because it lets you see how someone approaches debugging, etc.
In either case, you could supplement the exercise with some discussion questions "why /when would you use BFS?" etc.
Yes, exactly.
That said, I should add the disclaimer that I'm referring to fairly general roles. If you're genuinely hiring for a highly specialized role that requires more specific knowledge, then that might change the equation a bit. I should have been more explicit about that earlier.
A lot of the CS fundamentals in interview questions demonstrate an ability for problem solving and abstract thinking. It demonstrates your ability to handle coding problems under stress. Resorting to complaining about hard computer science problems is the exact opposite response you should have. It should motivate you to improve and learn more, not feel bitter and angry. Likely this attitude indicates a poor culture fit as well. So in effect asking computer science question is doubly useful, because it helps filter out candidates who opt for alternatives to self-improvement and overcoming challenges.
Thinking that CS makes you competent as a software engineer and that you will regularly be implementing red-black trees is a typical fresh-out-of-college mistake.
> has a good basic grasp of CS and algorithms?
Maybe they want to see if someone has more than a "good basic grasp".