The Wayback Machine - https://web.archive.org/web/20240118182318/https://www.geeksforgeeks.org/puzzle-7-3-bulbs-and-3-switches/
Open In App
Related Articles

Puzzle 7 | (3 Bulbs and 3 Switches)

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report

There is a room with a door (closed) and three light bulbs inside the room. Outside the room, there are three switches, connected to the bulbs. You may manipulate the switches as you wish, but once you open the door you can’t change them. All bulbs are in working condition and you can open the door only once. Identify each switch with respect to its bulb.

Solution:
Let the bulbs be X, Y, and Z 
Turn on switch X for 5 to 10 minutes. Turn it off and turn on switch Y. Open the door and touch the light bulb. 
1. the light is on from the bulb, it is Y 

Now we will check the other two off bulbs 
2. the bulb which is hot, is X 
3. the bulb which is cold, is Z  
 

 

 

 

Learn to code easily with our course Coding for Everyone. This course is accessible and designed for everyone, even if you're new to coding. Start today and join millions on a journey to improve your skills!

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Commit to GfG's Three-90 Challenge! Purchase a course, complete 90% in 90 days, and save 90% cost click here to explore.
Last Updated : 19 Jan, 2023
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads