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

Can you find out the total number of triangles in the given figure?

Triangle Angle

Asked by Neha on 12 Mar 2024


A crime was committed at baker street. Ibrahim Dakota who was shot in the stomach was the main suspect. Sherlock questioned the suspect. The conversation started as:
Sherlock: What's your story, Ibrahim?
Ibrahim: I was walking around baker street and suddenly a man from the back shot me. I ran as fast as I could to save my life".
Sherlock: That is enough (and ask the police to arrest him).

Why does Sherlock think he is the murderer?

Asked by Neha on 25 Apr 2025

John is looking at Jenifer, but Jenifer is looking at Jacob. John is married, but Jacob is not.

Is a married person looking at an unmarried person ?

Asked by Neha on 08 Feb 2021


I am a mother. However, I never give birth.

I am a father. However, I never nurse my children.

Wandering is not possible for me, but standing still happens occurs rarely.

Who am I?

Asked by Neha on 30 Oct 2024

A lion and its tamer are standing inside a cage that measures 1 unit in radius. Both of them can effortlessly run at the speed of 1 unit maximum.

1) Suppose the lion is hungry, will he be able to eat up the tamer?
2) If yes, how long can the tamer survive?

Asked by Neha on 13 Oct 2023

Two men play a dice game involving roll of two standard dice. Man X says that a 12 will be rolled first. Man Y says that two consecutive 7s will be rolled first. The men keep rolling until one of them wins.

What is the probability that X will win ?

Asked by Neha on 13 Apr 2023


What can you deduce from the following BrainBat?

CRY
LMKI

Asked by Neha on 26 Aug 2024

Distances from you to certain cities are written below.

BERLIN 200 miles

PARIS 300 miles

ROME 400 milesAMSTERDAM 300 miles

CARDIFF ??? miles

How far should it be to Cardiff ?

Asked by Neha on 25 Feb 2021

why number 8549176320 is one of a kind?

Asked by Neha on 17 Apr 2023


Which is the rope you never skip with?

Asked by Neha on 01 May 2024

Hot Articles

Amazing Facts

Crossword puzzles

In the 1920s, people feared that crossword puzzles would contribute to illiteracy.