Open In App
Related Articles

Puzzle – Switches

Improve Article
Improve
Save Article
Save
Like Article
Like

There are three switches outside a room, all in the “off” position. One of the switches controls a light bulb inside the room, but you don’t know which one. You are allowed to enter the room only once, and you cannot turn the switches on or off while you are in the room. How can you determine which switch controls the light bulb?

Puzzle – Switches

Solution:

Turn on the first switch and leave it on for a few minutes. then, turn off the first switch and turn on the second switch. Enter the room and there will be three possible scenarios:

  • If the light bulb is on, it is controlled by the second switch.
  • If the light bulb is off but warm to the touch, it is controlled by the first switch.
  • If the light bulb is off and cool to the touch, it is controlled by the third switch.
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!

Last Updated : 19 Apr, 2023
Like Article
Save Article
Previous
Next
Similar Reads