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

How can you take 2 from 5 and leave 4?

Asked by Neha on 03 Apr 2022


What has hands, but can’t clap?

Asked by Neha on 21 Feb 2022

If two fifty-foot ropes are suspended from a forty-foot ceiling that is twenty feet apart, how much rope will you be able to steal if you have a knife?

Rope can be stolen

Asked by Neha on 19 Sep 2024


The Little ant seems to be always confused. Do you know why?

Asked by Neha on 26 May 2024

How do you go from 98 to 720 using just one letter?

Asked by Neha on 08 Oct 2021

There's one "sport" in which neither the spectators nor the participants know the score or the leader until the contest ends.

What is it?

Asked by Neha on 10 Apr 2022


You are given four results as below:
1111 = F
2222 = E
3333 = T
Then, can you find out how to code 4444?

Asked by Neha on 29 Nov 2023

That attorney is my brother, testified the accountant.

But the attorney testified he didn't have a brother.

Who is lying?

Asked by Neha on 14 Dec 2020

During an experiment, a guy throws a bouncy ball from a 100 feet tall building. The ball has a specific characteristic. Every time it hits the ground, it bounces up halfway.

How many bounces do you think the ball will make before it comes to a stop ?

Asked by Neha on 24 Nov 2023


On rolling two dices (six-sided normal dice) together, what is the probability that the first one comes up with a 2 and the second one comes up with a 5?

Asked by Neha on 08 Oct 2023

Hot Articles

Amazing Facts

Artificial Intelligence

Artificial Intelligence has crushed all human records in the puzzle game “2048,” achieving a high score of 839,732 and beating the game in only 973 moves without using any undo.