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

Puzzle | 3 Bulbs and 3 Switches

Last Updated : 30 Jul, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

There is a closed room with three light bulbs inside. Outside the room, there are three switches, each connected to one of the bulbs, but you don't know which switch connects to which bulb.

You can do anything you like with the switches, turn them on or off, in any combination, but you can open the door and enter the room only once. Once you are inside, you can no longer change the switches.

3 Bulbs and 3 Switches


Check if you were right - full answer with solution below.

Solution:
Let the three switches be X, Y, and Z, and let them control three light bulbs inside the room.

  • Turn on switch X and leave it on for 5 to 10 minutes.
  • After that time, turn off switch X and turn on switch Y.
  • Leave switch Z off the entire time.
  • Now open the door and enter the room.

Inside the room, observe the following:

  • The bulb that is on is connected to switch Y (since it was turned on most recently).
  • Of the remaining two bulbs:
    1. The bulb that is off but warm is connected to switch X (it was on earlier and is still warm).
    2. The bulb that is off and cold is connected to switch Z (it was never turned on).
       

Similar Reads