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

Look at this sequence from top to bottom. What is the next number in the sequence?
1
11
21
1211
111221
312211

Asked by Neha on 24 Sep 2021


What is red and smells like blue paint?

Asked by Neha on 22 Jul 2025

👉 I am a 7 letter word.
👉 I like mornings
👉 If you remove my 1st letter you can drink me
👉 If you remove my 1st & 2nd letters 👉 you may not like me
👉 If you remove my last letter, you will see me on television
👉Answer is really very interesting
Let us see who solves this....

Asked by Neha on 14 May 2021


What English word has three consecutive double letters?

Asked by Neha on 22 Jan 2023

John was working on a Chemical Mixture whose weight comprise 90% liquid and 10% solid. The total weight of the mixture is 20 pounds. After a while, John noticed that some of the liquid evaporated and now the liquid comprises just 50% of the weight.

What is the weight of the chemical mixture now?

Asked by Neha on 12 Feb 2024

Two old friends, Jack and Jill, meet after a long time, and discussing as:

Jack: Hey, how are you, man?

Bill: Not bad, got married and I have three kids now.

Jack: That's awesome. How old are they?

Bill: The product of their ages is 72 and the sum of their ages is the same as your birth date.

Jack: Cool..But I still don't know.

Bill: My eldest kid just started taking piano lessons.

Jack: Oh, now I get it.

How old are Bill's kids?

Asked by Neha on 23 Dec 2020


I am a white box having no key or lid.
Yet there is a golden treasure inside it.

What Am I?

Asked by Neha on 03 Mar 2026

In a concert, Christina is performing a dance show with her group.
At 10:00, she and her crew were dancing in an absolutely straight line. At that time Christina was standing in 4th position from both the front and back end of the row.

What was the size of her crew?

Asked by Neha on 11 Aug 2024

Who are the happiest people in IPL match?

Asked by Neha on 24 Jan 2025


Can you solve below mathematical equation?

2^1234 - 2^1233

Asked by Neha on 26 Jan 2024

Hot Articles

Amazing Facts

Gamers

In 2011, people playing Foldit, an online puzzle game about protein folding, resolved the structure of an enzyme that causes an Aids-like disease in monkeys. Researchers had been working on the problem for 13 years. The gamers solved it in three weeks.