Programming Question

Question: You are standing in a hallway next to three light switches, all of which are off. Each switch operates a different incandescent light bulb in the room at the end of the hall. You cannot see the lights from where the switches are. Determine which light corresponds to each switch. You may go into the room with the lights only once.

From: Programming Interviews Exposed

Subject: Math and Logic Puzzles

Load Another Question


Select a Subject