this post was submitted on 25 Dec 2025
253 points (97.7% liked)

Programmer Humor

40443 readers
53 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
[โ€“] sweafa@discuss.tchncs.de 5 points 1 month ago (1 children)

maybe dont care. hit all 3 of em. answer is: i have figured out that one of the 3 switches controls the bulb (or not)

[โ€“] danhab99@programming.dev 2 points 1 month ago

You have to report back which individual switch it is such that another person is able to control the light bulb reliably because they know which switch