4 ms·
This is a terrible interview question. It is an unrealistic scenario, should never be in production code, and does not offer any additional information from the
by urda 9y ago
This is a terrible interview question. It is an unrealistic scenario, should never be in production code, and does not offer any additional information from the candidate.
Please never ask this on any interview loop, thanks.
- UncleMeat 9y agoInterview questions are rarely about the code itself, but the discussion about the code. I think this is what people miss when they say "I'll never actually need to do X". Yes, but I want to see how you can take clear requirements and implement them in code. Or I want to see how you'd approach a seemingly impossible behavior happening in production. As a piece of trivia the question isn't great but as a "how does a person debug some totally unexpected behavior that requires somewhat deep knowledge of the language to comprehend" it is a great question.