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
[–] JRaccoon@discuss.tchncs.de 35 points 4 days ago (1 children)

I think I was asked this very question in an interview once. I think I answered something along the lines of 'If you have a light switch like that here in the office, the first thing I would recommend is calling in an electrician to change and move the switch to the correct room. Why would you have a light switch that controls a light in a different room and apparently two switches that do nothing??'

Got the job.

[–] racketlauncher831@lemmy.ml 3 points 3 days ago (1 children)

The bathroom where the switch is prone to get splashed?

[–] JRaccoon@discuss.tchncs.de 4 points 3 days ago (1 children)

Sure, but I would still argue the bathroom light switch should be located, I don't know, next to the bathroom door? And most definitely there shouldn't be two totally useless switches there.

I don't think I would like to work for a company that struggles this much with light switches..

[–] ilinamorato@lemmy.world 2 points 2 days ago

Or with water, frankly. Is the only option for the switch inside the bathroom literally in the sink basin? There shouldn't be that much splashing in a work bathroom.