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

You need to complete the maze by entering from the entrance marked below in the figure near the yellow circle, bottom left and leaving from the exit point near the green circle, bottom middle.

Rule of Game: You can move only by exchanging green and yellow circles.

Cross the Gate

Asked by Neha on 21 Oct 2023


You are provided with a grid (as shown in the picture). Can you fill the squares with numbers 1-8 in a manner that none of the two consecutive numbers are placed next to each other in any direction (vertically, horizontally or diagonally?)

Fill The Grid

Asked by Neha on 22 Sep 2025

A Doctor always sneezes before the rain. Doctor sneezes, Will it rain?

Asked by Neha on 24 Jul 2024


Three cars are driving on a track that forms a perfect circle and is wide enough that multiple cars can pass anytime. The car that is leading in the race right now is driving at 55 MPH and the car that is trailing at the last is going at 45 MPH. The car that is in the middle is somewhere between these two speeds.
Right now, you can assume that there is a distance of x miles between the leading car and the middle car and x miles between the middle car and the last car and also, x is not equal to 0 or 1.
The cars maintain their speed till the leading car catches up with the last car and then every car stops. In this scenario, do you think of any point when the distance between any two pairs will again be x miles i.e. the pairs will be x distance apart at the same time ?

Asked by Neha on 08 May 2021

What is in seasons, seconds, centuries and minutes but not in decades, years or days?

Asked by Neha on 25 Dec 2024

In an office's desk, you find a unique method that shows the current day of the month. Two numbered cubes are used to depict the current date.

Can you find out the numbers on both the cubes so that each date can be mentioned using them?

Please note that you have to use both the cubes to display any date. Thus the 1st day must be represented by 01 and so on.

Asked by Neha on 14 May 2023


Which English verb becomes past tense just by rearranging the letters?

Asked by Neha on 07 Sep 2025

"That Restaurant always remains crowded. This is the reason why nobody goes there".

Can you find a flaw in this statement?

Asked by Neha on 06 Apr 2024

What is red and smells like blue paint?

Asked by Neha on 22 Jul 2025


It comprises roots which nobody sees,
Much taller than those trees,
Up and up it goes,
Still it never grows?

Asked by Neha on 02 Jan 2025

Hot Articles

Amazing Facts

No Solution

In 2007, a puzzle was released and $2 million prizes were offered for the first complete solution. The competition ended at noon on 31 December 2010, with no solution being found. Wiki