561

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
[-] count_dongulus@lemmy.world 146 points 8 months ago* (last edited 8 months ago)

I really hate these awful "puzzles". They only work by the asker intentionally withholding what, if any, constraints exist in the problem space leaving it totally vague, but of course there ARE secret constraints revealed if you violate them with your answer.

Me: "I do it without flipping any switches. I just ask the lightswitches which one controls the light, and they tell me."

Interviewer: "That's not allowed."

Me: "Well what exactly is allowed? Can I pull the cables out of the wall and see which connects to the bulb? Oh, I bet that's not allowed. How about I open my smart home app and just check which of the smart switches is labeled for it? Oh, I bet it's not a smart switch so I can't do that either? Oh, then the bulb has a chime that boops when it comes on, so I just listen for the boop. Oh that's not allowed either? Wait wait wait, the walls are glass, so I just watch to see when the bulb comes on when I flick the switches."

Even the canonical answer makes a dumb assumption. Ordinary LED bulbs don't get hot.

[-] 4am@lemmy.zip 21 points 8 months ago

Their bases do, quite famously. Especially the smart ones.

[-] 18107@aussie.zone 38 points 8 months ago

That is also assuming the lights are not recessed into the ceiling.

And the even more egregious assumption that you could even reach the lightbulb.

[-] Dekkia@this.doesnotcut.it 17 points 8 months ago

I fully agree with your rant.

But LED bulbs do get warm enough that this still would work.

[-] drosophila 22 points 8 months ago

Philips Ultra Efficient bulbs use only 4 watts, and they have a glass bulb and metal base, so they might feel cool to the touch anyway. Or at least feel plausibly the same temperature as the room, depending on how hot it is in there.

[-] Dekkia@this.doesnotcut.it 2 points 8 months ago

I guess if you intentionally use a very efficent bulb you're right.

[-] mnemonicmonkeys@sh.itjust.works 7 points 8 months ago

Even the canonical answer makes a dumb assumption. Ordinary LED bulbs don't get hot.

The problam originally came out before LED bulbs were a thing. At the time, you mainly could only get incandescent bulbs. That's not their fault

[-] Natanael@infosec.pub 2 points 8 months ago

I can't believe not even a single person said "use a touchfree current detector".

At least I could argue back that's expected to be allowed if this circumstance happened IRL

[-] Digit@lemmy.wtf 1 points 7 months ago

pull the cables

LOL.

the walls are glass

Or use psychic powers. XD

this post was submitted on 25 Dec 2025
561 points (100.0% liked)

Programmer Humor

32950 readers
1251 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

founded 3 years ago
MODERATORS