That sounds nicer than what 95% of programming interviewers actually do, which is something rather different.<p>Almost all are simply playing &quot;programming trivia.&quot; They name an algorithm or a data structure, and then evaluate whether you can recite it from memory. That&#x27;s it. There is no problem-solving element involved. It is purely a test of whether you can memorize and recite.<p>This requires a lot less effort on the part of the interviewer than the style you describe, and also bolsters their ego and makes them feel clever when they find a candidate who can&#x27;t recite properly.