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

John drives to his office at 20km/hr. After reaching the office, he realizes that today is a holiday. He went back at an average speed of 30km/hr. Discounting the time spent in the stoppage what was the average speed of his journey?

Asked by Neha on 21 Apr 2025


What is the four-digit number in which the first digit is one-third the second, the third is the sum of the first two, and the last is three times the second?

Asked by Neha on 15 Sep 2025

If you’ve got me, you want to share me; if you share me, you haven’t kept me. What am I?

Asked by Neha on 18 Feb 2022


There is an exact a week gap between Christmas and New Year. Hence, It is obvious that the new year that comes right after Christmas comes on the same day of the week.

A Strange thing happened in the Year 1777. Christmas occurs on Wednesday and New Year on Monday. How is that possible?

Asked by Neha on 19 Dec 2025

You’re out on the water and see a boat filled with people. You look away for a second and look back again, but this time you don’t see a single person on the boat. Why? Hint: The boat did not sink.

Asked by Neha on 15 Jun 2025

Andrew sees a very rare bird named "Ruppell's vulture". Soon Andrew was dead. Can you explain the mystery, Mr. Sherlock?

Asked by Neha on 13 Dec 2025


You are in a room that has three switches and a closed door. The switches control three light bulbs on the other side of the door. Once you open the door, you may never touch the switches again. How can you definitively tell which switch is connected to each of the light bulbs?

Asked by Neha on 02 Jul 2025

15 caves are arranged in a circle at the temple of doom. One of these caves has the treasure of gems and wealth. Each day the treasure keepers can move the treasure to an adjacent cave or can keep it in the same cave. Every day two treasure seekers visit the place and have enough time to enter any two caves of their choice.

How do the treasure seekers ensure that they find the treasure in the minimum number of possible days?

15 Cave Riddle

Asked by Neha on 29 Jul 2024

John speaks the truth only once a day in a week. Below are a few hints for you:

First: Days are Sunday, Monday and so on.
Second: One day he says, "I lie on Monday and Tuesday".
Third: On the next day, he says, "Today is either Thursday, Saturday or Sunday".
Fourth: On the next day, he says, "I lie on Wednesday and Friday".

Can you identify the day on which he speaks the truth?

Asked by Neha on 09 May 2025


John, Jack and Jill are in a desert. John doesn't like Jill and hence decides to murder him. He poisons the water supply of Jill. Since it is a desert area, Jill must drink or he will die of thirst.

Jack does not know of the actions of John and also decides to murder Jill. To succeed in his ill motives, he removes the water supply of Jill so he dies of thirst.

Jill dies due to thirst. Who murdered Jill?

Asked by Neha on 08 Aug 2023

Hot Articles

Amazing Facts

Rubik’s Cube

The inventor of the Rubik’s Cube didn’t realize he’d built a puzzle until he scrambled it the first time and tried to restore it.