this post was submitted on 25 Dec 2025
244 points (97.3% liked)
Programmer Humor
39640 readers
566 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
There is no correct answer. The interviewer wants to see how you approach the problem. You can have the correct answer but still make a bad impression, or you can fail to find the standard solution and still ace this test.
I think of the interviewer ask this specific question they aren't sophisticated enough to expect anything else than the "correct" answer. The question is so old, stupid, and irrelevant that anyone smart enough to ask actual good interview questions would never lead with this.
IMO questions like this only make sense if you slightly modify them to make the "standard" answer impossible.
Then you see how the candidate reacts to curveballs.
I still think it's more useful to ask the candidate for a problem they've solved in a creative way.