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:

founded 6 years ago
MODERATORS
 

Post:

You have three switches in one room and a single light bulb in another room. You are allowed to visit the room with the light bulb only once. How do you figure out which switch controls the bulb? Write your answer in the comments before looking at other answers.


Comment:

If this were an interview question, the correct response would be "Do you have any relevant questions for me? Because have a long list of things that more deserving of my precious time than to think about this!

you are viewing a single comment's thread
view the rest of the comments
[โ€“] Tiger666@lemmy.ca 2 points 2 days ago (1 children)

All three switches are on the same circuit.

The answer is to turn on the first one and wait ten minutes. Then turn it off and flick on the second switch and go and look at the light. If the light is off and the bulb is hot it is the first switch if its off and cold its the third switch and if its on its the second switch.

Hope this helps.

that assumes one of the three switches is able to turn the light on, which is not stated in the question