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
[-] gustofwind@lemmy.world 39 points 8 months ago

The answer isn’t intuitive anymore now that lightbulbs don’t always get hot 🥲

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

It wasn't intuitive before, either, without making an absolute ton of horrible assumptions.

  • Are the wires even connected?
  • Does only one switch control the light?
  • Did the light start on or off?
  • Is the light bulb in arm's reach?
  • Can I bring my friend and just yell to each other?
  • Can I just leave the door open and see whether it turns on or not?
  • It says I'm allowed to visit the bulb room once but never actually mentions the switch room - do I start there? Can I go back after visiting the bulb room?
  • And, as you said, what type of bulb is it?

Anyone who doesn't explore the assumptions should probably fail that particular interview question.

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

I’ll be honest, a lot of those are pretty stupid

Obviously the wires are connected

Obviously one switch controls the light

Obviously the lights start off

In a thought experiment you can magically reach the lightbulb if you want

Obviously you cannot bring a friend

Obviously you cannot see the light from the switch

Obviously you return to the switches

[-] Ledivin@lemmy.world 10 points 8 months ago

lol

Every time you say "obviously" to an assumption, someone else gets the job.

[-] gustofwind@lemmy.world 1 points 8 months ago

If you’re hung up on the basic assumptions necessary to make the thought experiment work as clearly intended then you won’t get it neither

[-] Ledivin@lemmy.world 4 points 8 months ago

Basic assumptions are why the Challenger exploded. Hopefully nobody ever hires you as an engineer.

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