252

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
[-] mech@feddit.org 115 points 4 months ago* (last edited 4 months ago)
  • Use the heat of the bulb to determine if it was on. (Shows you can memorize stupid interview questions)
  • Ask a team member to coordinate with you in the other room. (You're a team player)
  • Use a cable locator (Proper tool for the trade)
  • Put your phone in the other room, stream camera feed to your work laptop (The tech approach)
  • Unscrew the bulb. Now you know that no switch controls the bulb (Exposing the flaw in the task's phrasing)
  • Open switch panel and disconnect one switch. Wait a day. If no one complains, disconnect the second. Wait a day. If no one complains, it's probably the third. For good measure, disconnect the third switch. If still no one complains, remove all switches and the lightbulb, since they're not needed anymore. (The Sysadmin approach)
[-] markstos@lemmy.world 22 points 4 months ago

I am the sysadmin and I approve this message.

[-] MrSmith@lemmy.world 22 points 4 months ago

I'm about to throw up.

[-] folaht@lemmy.ml 10 points 4 months ago* (last edited 4 months ago)

What about trying to figure out first what the other two buttons do? Maybe they turn on the light of the room you're in. And I can see light without entering a room right? Just open the door, no need to enter it. If not allowed, look at the foot of the door or try to see if the room has a window.

No need to buy fancy equipment or even go into the room at all.

[-] Aeao@lemmy.world 2 points 4 months ago* (last edited 4 months ago)

I’ve seen Rick and Morty. I know what they do. Grab a shovel.

[-] EvilHankVenture@lemmy.world 1 points 4 months ago

You're assuming they don't control something in the room with the light, or they could control the lights in your room and the light you're trying to check .

[-] folaht@lemmy.ml 1 points 4 months ago* (last edited 4 months ago)

Ah yes.
The infamous "they" who control everything.
But what "they" who control "they", who are really in control of the lights in your room and the lights you're trying to check?
What if there's an infinite amount of "theys" all the way down that by mathematical logic leads to myself?
What if the interview being held and the question being asked wasn't meant to test me, but to test you?
What then?

[-] EvilHankVenture@lemmy.world 1 points 4 months ago

By "they", I meant the switches.

But I'm just a brain in a jar and you are a simulation implanted in my consciousness by the switches so it doesn't really matter.

[-] Eh_I@lemmy.world 8 points 4 months ago* (last edited 4 months ago)

Open switch panel and disconnect one switch. Wait a day. If no one complains, disconnect the second. Wait a day. If no one complains, it’s probably the third. For good measure, disconnect the third switch. If still no one complains, remove all switches and the lightbulb, since they’re not needed anymore. (The Sysadmin approach)

I used this method a few months ago in my breaker box. I needed to make room in it for an EV charger.

[-] varyingExpertise@feddit.org 3 points 4 months ago

So, how's the freezer doing by now?

[-] chenyun_fan1905@lemmy.ml 8 points 4 months ago

I think if its LED then the heat of the bulb strategy won't work.

[-] varyingExpertise@feddit.org 4 points 4 months ago

Give it few minutes, they get warm as well.

[-] Tiger666@lemmy.ca 1 points 4 months ago

LED lights get hot. So hot their plastic frames melt slightly sometimes.

this post was submitted on 25 Dec 2025
252 points (97.4% liked)

Programmer Humor

42018 readers
3 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS