Prisoners got freed

100 prisoners are stuck in the prison in solitary cells. The warden of the prison got bored one day and offered them a challenge. He will put one prisoner per day, selected at random (a prisoner can be selected more than once), into a special room with a light bulb and a switch which controls the bulb. No other prisoners can see or control the light bulb. The prisoner in the special room can either turn on the bulb, turn off the bulb or do nothing. On any day, the prisoners can stop this process and say "Every prisoner has been in the special room at least once". If that happens to be true, all the prisoners will be set free. If it is false, then all the prisoners will be executed. The prisoners are given some time to discuss and figure out a solution. How do they ensure they all go free?




Similar Riddles

This was asked in an interview with Coa-Cola.

The interviewer has given me 100 marbles(50 white and 50 black) and two empty boxes.
He then told me that he will leave the room and i need to place all the marbles in two boxes.

And When he come back, he will draw a marble from any of the two box and if the marble is white I will be hired.

Also
* No box can be empty.
* All 100 marbles must be placed in one of the two boxes.

So what should I have done?

Asked by Neha on 29 Nov 2024


You see a boat filled with people, yet there isn’t a single person on board. How is that possible?

Asked by Neha on 12 Feb 2022

I can write cow in 13 letters.

Can You?

Asked by Neha on 03 Oct 2024


What numbers should go on the bottom line?
3 6 9 15
8 2 10 12
11 8 19 27
19 10 29 39
? ? ? ?

Asked by Neha on 29 Apr 2022

A King wants to send the diamond ring to his girlfriend securely. He got multiple locks and their corresponding keys. His girlfriend does not have any keys to these locks and if he sends the key without a lock, the key can be copied in the way. How can King send the ring to his girlfriend securely?

Asked by Neha on 03 Oct 2025

You are a thief and you are being punished for your crime. People have tied your head down on a tree with a rope that has been anchored in the ground. A candle is burning below the rope which is slowly burning it away. Just below your head, a Lion has been left loose and is waiting for you to drop down on the ground so he can have you as his lunch.

You have to survive the scenario. How will you do it?

Asked by Neha on 17 Dec 2025


Below, you can see three complete equations and one incomplete. Based on the three complete ones, can you complete the incomplete one?

5 $ 4 $ 3 $ 9 = 4215
6 $ 9 $ 2 $ 6 = 3816
4 $ 7 $ 3 $ 3 = 1122
7 $ 2 $ 7 $ 4 = ____

Asked by Neha on 10 Dec 2025

Make the seating arrangement of 10 children in such a way that there are 5 rows with 4 children in each row.

Asked by Neha on 18 Mar 2026

Find the Goldfish below the given Image.

Find the Goldfish

Asked by Neha on 25 Feb 2025


Replace the 'X' with any mathematical symbol to make the expression equal to 111.

18 X 12 X 2 X 3 = 111

Asked by Neha on 27 Jul 2024

Hot Articles

Amazing Facts

Jigsaw puzzles

Jigsaw puzzles soared in popularity during the great depression, as they provided a cheap, long-lasting, recyclable form of entertainment.