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 doctor and a boy were fishing. The boy was the doctor’s son, but the doctor was not the boy’s father. Who was the doctor?

Asked by Neha on 04 Mar 2022


John left on a horse on Thursday , was gone for two days, and came back on Thursday after completing his work. How did that happen?

Asked by Neha on 23 Feb 2021

A wealthy man lives alone in a small cottage. Being partially handicapped he had everything delivered to his cottage. The mailman was delivering a letter one Thursday when he noticed that the front door was ajar. Through the opening he could see the man's body lying in a pool of dried blood. When a police officer arrived he surveyed the scene. On the porch were two bottles of warm milk, Monday's newspaper, a catalog, flyers, and unopened mail. The police officer suspects it was foul play. Who does he suspect and why?

Murder Mystery Puzzle

Asked by Neha on 07 Apr 2021


I get hot but I never sweat,
I cook food but I am not a chef,
I have a door but you can't enter me,
I have a light but I am not a lamp.
Who am I?

Asked by Neha on 15 Feb 2021

A spy was in Canada trying to steal insider information on how to set up new Maple Syrup factories in their country. He was introduced to the operations manager of the biggest factory in Canada. However, the manager was suspicious and decided to test him with a question before he trusted him. So he asked, “What would you be sure to find in the middle of Toronto?” The spy thought fast and came up with an answer for the manager. What was his answer?

Asked by Neha on 04 Jun 2025

A 52% bias toss for head using the 51% tail bias coin was done to obtain a fair result.

Can you find how bias is the floor in this case?

Asked by Neha on 15 Feb 2023


I am under you when I am whole.
I shift above you if you remove the first letter.
I come all around you if you remove the second as well.

Can you tell me who I am?

Asked by Neha on 28 Jun 2023

What does Alexander the Great and Winnie the Pooh have in common?

Asked by Neha on 17 Jul 2025

What does this rebus puzzle means ?

Rebus Picture Problem

Asked by Neha on 18 Jul 2023


How many triangles are there on the puzzle below?

Let

Asked by Neha on 10 Feb 2024

Hot Articles

Amazing Facts

Word ladder puzzle

The word ladder puzzle was invented by Lewis Carroll, author of Alice’s Adventures in Wonderland.