-->

Monday, July 17, 2017

Solution :- The bulb Problem (Code #A1)

CLICK HERE to go to the question #A1 .


So we needed to find the correct switch for the bulb and we were allowed only once in the room, what we could have done is that first we pressed the switch No.1 and leave it on for a while then switch on No.2 (now as soon we switch this one No. 1 switches off automatically).


Now we enter the room. We have 2 situations :-

1) There is a bulb glowing in the room :- If that's the case then we have found it's switch NO.2
2) No bulb is glowing as we enter the room :- Then I touch the bulb if it's hot then the switch was NO.1 and if it's at the room temperature then the switch was NO.3 .

So we basically found out the correct switch by entering the room only once.

No comments:

Post a Comment