Which of four switches lights the hidden bulb
Question
Outside a closed room are four switches, all off. Exactly one of them operates a light bulb inside the room, and from outside you cannot see the bulb. What is the minimum number of times you must enter the room to be sure which switch controls it?
Short answer
Once. Turn switches and on and wait several minutes, then turn off and turn on, and go in. The bulb's state (on or off) together with its temperature (hot or cold) gives four combinations: on and hot means , off and hot means , on and cold means , off and cold means .
Adapted from Zhou, A Practical Guide to Quantitative Finance Interviews, sec. 2.3 Thinking Out of the Box, 'Light switches', p.13; question and answer rewritten by SelfMadeQuant.com.
See the hint and the full worked solution in the question bank (free account).
Open the worked solution