this post was submitted on 25 Dec 2025
487 points (96.7% liked)
Programmer Humor
28033 readers
1133 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
The biggest flaw is that it assumes you’ll add conditions you’re not explicitly told are allowed. Many, many problems in school would be trivial if changing the terms beyond what’s stated was allowed.
This is often exactly what the interview question is testing. Many of these questions are not about the solution but about how the applicant approaches problems
Yet they never explicitly state you’re allowed to make convenient assumptions. If the bulb was out of hand’s reach the problem would be unsolvable.
Assuming the electrician that wired the switches is in the room would be even a more out-of-the-box solution.
As I said, they care about how you think. Do you ask all these questions?
if I were given this interview question I would immediately start asking questions: Do I have my phone? Can I bring any objects into the room? Do I know the construction of the light? How far from the room is the light switch panel?
Asking "what are the limitations and conditions of this situation" is literally the thing they want to see. That's my entire point.