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

A family is trapped in a jungle. There is a bridge which can lead them to safety. But at one time, the bridge can only allow two people to pass through. Also, all of them are afraid of the dark and thus, they can't go alone.

Father takes 1 minute to cross, the mother takes 2 minutes, the son takes 4 and the daughter takes 5 minutes. While crossing the time taken will be according to the slower one. How can they all reach the other side in the minimum possible time?

Asked by Neha on 09 Aug 2024


You are confined in a room and given two metal rods. Out of these two rods, one is magnet and the other is the iron rod. They look starkly similar. You don't have any other metal object in the room.

How will you decide which one of those is magnet?

Asked by Neha on 25 Apr 2021

Living above a star, I do not burn
Eleven friends and they do not turn
I can just be visited in a sequence, not once or repeatedly
PQRS are my initials
Can you tell my name accurately?

Asked by Neha on 11 Jul 2021


What always comes into a house through the keyhole?

Asked by Neha on 08 Mar 2022

Can you write down eight eights so that they add up to one thousand?

Asked by Neha on 29 Sep 2021

A thief enters a store and threatens the clerk, forcing her to open the safe. The clerk says, “The code for the safe is different every day, and if you hurt me you’ll never get the code.” But the thief manages to guess the code on his own. How did he do it?

Asked by Neha on 14 Jun 2025


I taste better than I can smell. Who am I?

Asked by Neha on 30 Dec 2023

Five thieves looted a bank and they ran away in a car. The bank staff informed the police and they began the search of their car in their jeep. They found them on a road and chased them eventually catching them. The light that is used to fill the number plate was broken on the thieves' car. Also, the headlights of the jeep police were not working. How were the police able to catch the thieves then?

Asked by Neha on 28 Nov 2024

A mathematician couple was having a Frappuccino in Starbucks sitting opposite to each other. Suddenly the guy noticed the text written on the paper in front of them and exclaimed that it was wrong. The girl denied it and said it is appropriate. Both are correct. What is written on the paper?

Asked by Neha on 11 Jul 2023


What does this mean?

CCCCCCC

Asked by Neha on 19 May 2025

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.