4 points · by jammin_h60 · 9y ago · 4 comments
How the interviewer handles this situation probably says something about the company culture. If the candidate does not know the answer, there is an opportunity for the interviewer to channel Julia Evans talking about strace. If the candidate does not understand the gist of the question, then there is a need for the interviewer to provide clearer direction.
The article provides a list of causes for candidates' inability to satisfactorily answer the question. All of them are more complex than investigating the immediate context of the interview and none of them require self-reflection by the interviewer
"Iterate through the list and check to see if it already exists."
What happens if you reply:
"You have a million items. You write the quick solution and find it goes very slowly. What would you do to speed it up?"
I suspect the rate of people who can give a decent optimization answer goes up massively if you make it clear that you're looking for something like the optimal answer, not the conceptually simple one. It doesn't matter if I use linear search if my N is some trivial number like 17, which is what I suspect most candidates have in mind.
(Of course, there's a certain perspective from which anybody who needs this kind of coaxing is a no-hire anyway.)