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

The square root of number 121 is "11". What is the square root of the number "12345678987654321."?

Asked by Neha on 15 Dec 2024


How can you write nineteen in a manner that if we take out one, it becomes twenty?

Asked by Neha on 23 Nov 2023

I have some blue and red sock in my drawer. I have a total of 4 socks. I pick 2 socks and the chance that I get a pair of red socks is 1/2.

What is the chance of picking a pair of blue socks?

Asked by Neha on 22 Mar 2023


The Judge knows that Alamgir was killed by his girlfriend Jasline, but the judge is unsure whether to punish her. Why?

Asked by Neha on 18 May 2025

In a supermarket, there is an intelligent glass pane before a refrigerating unit. This glass pane allows cherries and apples through it but does not allow grapes and Orange to pass through it.

Can you identify the rule that the glass pane is following?

Asked by Neha on 18 Jul 2024

In Greek mythology, the Sphinx sat outside of Thebes and asked this riddle of all travellers who passed by. If the traveller failed to solve the riddle, then the Sphinx killed him/her. And if the traveller answered the riddle correctly, then the Sphinx would destroy herself. The riddle:

What goes on four legs in the morning, on two legs at noon, and on three legs in the evening?

Oedipus solved the riddle, and the Sphinx destroyed herself.

Asked by Neha on 26 Jul 2024


A Detective reviewed the information they had on the case so far.

A lady named 'Caterina' was found shot and they already had a list of suspects - Ankit, Tarun, Harish, Manoj and Manish.
The killer is a fan of challenges him by leaving notes ad various places.
* The first was found in a toilet room.
* The second was found in an art room.
* The third was in a restroom.
* the fourth in an underwater room.
* The fifth at the no-smoking room.

All of the notes read the same thing, 'The clues are where you find the notes.' Yet, nothing was found at any place the notes were.
Detective the genius, immediately solved the case.
Who was the killer?

Asked by Neha on 11 Sep 2023

Your last good ping-pong ball fell into a narrow metal pipe embedded one foot deep in concrete.
How can you get it out undamaged, if all the tools you have are your tennis paddle, shoe laces, and plastic water bottle, which does not fit into the pipe?

Asked by Neha on 10 Nov 2024

Can you find out the next digit in the following series ?

0, 0, 1, 3, 2, 6, 3, 9, 4, 12, 5, ?

Asked by Neha on 22 Jan 2021


If,

A + B = C
D - C = A
E - B = C

Based on the above equations, find out the answer for:

D + F = ?

Asked by Neha on 01 Jan 2026

Hot Articles

Amazing Facts

Artificial Intelligence

Artificial Intelligence has crushed all human records in the puzzle game “2048,” achieving a high score of 839,732 and beating the game in only 973 moves without using any undo.