Brainteaser: You need to find the right switch for each of bulb

Let’s see if you solve it.

The Three Way Light Bulb Brainteaser
You are standing in a corner of house with three light switches, each of which controls one of three light bulbs in the next room. However, you cannot see the bulbs from where you stand.

You are allowed to manipulate the switches as much as you like, but you can only enter the room once where the bulbs are.

How can you determine which switch controls each bulb?

Answer to The Three Way Light Bulb Brainteaser with explanation:

Turn on the first switch and leave it on for a few minutes.
After a few minutes, turn off the first switch and turn on the second switch.
Enter the room.
Now, here’s what you’ll find:

The bulb that is on corresponds to the switch you left on.
The bulb that is off and warm corresponds to the switch you turned on and then off.
The bulb that is off and cold corresponds to the switch you never touched.
This way, you can determine which switch controls each bulb using just one trip into the room.