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

Intelligence Agency need to break the vault but the problem is that they are not able to break the vault.

On the vault, a text is written as:

31 11 33 33 43 45
21 25
31 24 11 31 51 41

To Break the code Intelligence Agency brings a mathematician named Joseph.
Minutes later he deciphers the code.

Whats the code?

Asked by Neha on 14 May 2021


Akbar called Birbal and asked him to draw a line on the floor. He asked Birbal to make that line smaller without erasing it. Birbal smiled and did it before Akbar could blink his eyes.

How did he managed to do it?

Akbar Birbal line on the floor riddle

Asked by Neha on 07 May 2021

The day before yesterday I was 25 and the next year I will be 28. This is true only one day in a year. What day is my birthday?

Asked by Neha on 07 Dec 2025


In two decks of cards, what is the least amount of cards you must take to be *guaranteed* at least one four-of-a-kind?

Asked by Neha on 11 Nov 2025

After undergoing a successful eye operation, A blind girl has just boarded a train to her home. The doctor asked her to open the bandages after 3 hours. On her train journey, she opened the bandages and within a fraction of the time she commits suicide by jumping off the train.

Though her operation was successful, Why did she commit suicide?

Asked by Neha on 15 May 2021

In which direction should the missing arrow point?

Arrow Direction

Asked by Neha on 30 Dec 2024


We know that money can be names differently for the purpose it is used for. Some of the examples of money given at following places or for following activities:

In temple = Daan
In school = Fees
During marriage = Dowry
For divorce = Alimony
Paying government = Tax
In court = Fine
Employer to employee = Salary
To kidnappers = Ransom
For illegal reason = Bribe
To civil servant retirees = Pension

Do you know what do we call the money a husband gives to his wife?

Asked by Neha on 12 Jan 2021

In the Thar desert, 3 men found a big 24L Jar is full of water. Since there is a shortage of water so they decided to distribute the water among themselves such that they all have equal amounts of it. But they only have a 13L, a 5L and an 11-litre Jar.

How do they do it?

Asked by Neha on 11 Jun 2024

In the following series, a set of numbers is progressing with a particular pattern. Can you deduce that pattern and find the missing set?

(2 + 6), (21 + 6), (58 + 6), (119 + 6), ___

Asked by Neha on 05 Dec 2025


How many Watermelons are there in the below picture?

How many Watermelons?

Asked by Neha on 13 Apr 2025

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.