Skip to content

Instantly share code, notes, and snippets.

@carlos8f
Created September 9, 2016 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlos8f/9fd4053e4af2d12c2d070c2c42c2e6d4 to your computer and use it in GitHub Desktop.
Save carlos8f/9fd4053e4af2d12c2d070c2c42c2e6d4 to your computer and use it in GitHub Desktop.
my solution to the 3 lightbulb switches problem
- label the switches A, B and C
- turn switch A on
- open door
- go into room
- notice the lit bulb. that's switch A. unscrew it and carry it with you, labeling it A.
- the room goes dark.
- unscrew one of the other bulbs, label it X, and carry it with you.
- do NOT touch the door on the way out, leaving it open
- exit the room.
- turn on switch B. does light appear in the room?
- if yes, the bulb in the room is switch B.
- if no, the bulb in the room is switch C.
- the "X" bulb is the remaining switch, either B or C depending on the light or darkness coming from the room.
i loved 3 switches 3 lightbulbs
carlos8f - Today at 12:31 PM
🔦
efim - Today at 12:33 PM
lol
do you know that one?
carlos8f - Today at 12:34 PM
no
efim - Today at 12:35 PM
oh boy
1 sec
Suppose that you are standing in a hallway next to 3 light switches, which are all off. There is another room down the hallway, where there are 3 incandescent light bulbs – each light bulb is operated by one of the switches in the hallway. Because the light bulbs are in another room, you can not see them since you are standing in the hallway.
How would you figure out which switch operates which light bulb, if you can only go the room with the light bulbs one time, and only one time?
let me know if you want a hint
carlos8f - Today at 12:43 PM
well, the first thing i would do is ask a friend to help
that's my solution
efim - Today at 12:44 PM
lol
you have noone around oyu
have to do it alone
carlos8f - Today at 12:45 PM
please give me all the params
i found the answer and then you changed the rules lol
efim - Today at 12:45 PM
hahahah
elementary, watson. send a friend to watch them lol
but thats not a solution
carlos8f - Today at 12:50 PM
can you see any light from the room at all? or is completely shut off from view from the hallway?
efim - Today at 12:52 PM
can't see anything
carlos8f - Today at 12:54 PM
how about the door. is there a door?
efim - Today at 12:54 PM
yes the door is completely shut with no light escaping, you can't peak inside in any way unless you walk inside the room.
carlos8f - Today at 12:55 PM
ok, but when i enter the room, i must open the door correct?
efim - Today at 12:55 PM
how does the door help you in any way?
carlos8f - Today at 12:55 PM
just answer the question
efim - Today at 12:55 PM
you must open the door
carlos8f - Today at 12:56 PM
ok, so after that, the door is open, correct?
i can then leave the room, and not touch the door again
meaning, the door stays open
efim - Today at 12:57 PM
sure
carlos8f - Today at 12:57 PM
ok, good
i see light coming from inside the room now
efim - Today at 12:57 PM
and it doesn't help you 😄
carlos8f - Today at 12:57 PM
that's for you to figure out
efim - Today at 12:58 PM
you remind me of myself
carlos8f - Today at 12:58 PM
lol
efim - Today at 12:59 PM
the solution is very simple if you think outside of a box
carlos8f - Today at 1:04 PM
ok, so i think i have a solution
efim - Today at 1:04 PM
shoot
carlos8f - Today at 1:04 PM
i will not 😃
i will tell you later, hold it "ransom" until you tell me the correct answer to the 3 pianists
efim - Today at 1:05 PM
bah
that wasn't part of the deal
carlos8f - Today at 1:05 PM
it is now, i just changed the rules ☕
efim - Today at 1:06 PM
lmao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment