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

When I got four, I have it none.
When I got two, I have it some.
When I got none, I have it all.

What is it?

Asked by Neha on 31 Aug 2024


Suppose you are a girl candidate and sitting in an interview. Suddenly the interviewer asks you, 'What if one morning you wake up and find out that you are pregnant?

How will you reply to such a question?

Asked by Neha on 29 Apr 2023

A boy and a girl are sitting on the porch.
"I'm a boy," says the child with black hair.
"I'm a girl," says the child with red hair.
If at least one of them is lying, who is which?

Asked by Neha on 21 Aug 2024


who is silent in the parliament?

Asked by Neha on 29 Apr 2024

What is the word or phrase?


HOROBOD Rebus riddle

Asked by Neha on 10 May 2021

A man wants to cross the pit of fire which is 25 feet in length and he has 2 planks(fire resistant) 19 feet in length. How can he cross the pit of fire alive?

Asked by Neha on 02 Oct 2025


Mr Black, Mr Gray, and Mr White are fighting in a truel. They each get a gun and take turns shooting at each other until only one person is left. Mr Black, who hits his shot 1/3 of the time, gets to shoot first. Mr Gray, who hits his shot 2/3 of the time, gets to shoot next, assuming he is still alive. Mr White, who hits his shot all the time, shoots next, assuming he is also alive. The cycle repeats. If you are Mr Black, where should you shoot first for the highest chance of survival?

Asked by Neha on 18 Feb 2025

The captain of a ship is telling you an interesting story and then poses a question. He says, “I have travelled the oceans far and wide. One time, two of my sailors were standing on opposite sides of the ship. One was looking west and the other one east. And at the same time, they could see each other clearly. Can you tell me how that was possible?”

Asked by Neha on 11 Jun 2025

Spelt forwards I’m what you do every day, spelled backwards I’m something you hate. What am I?

Asked by Neha on 26 Jul 2025


A man is surviving on an island along with his friend. They have been starving for four days for food. Suddenly, they find a fisherman. The friend goes with the fisherman in order to catch the fish (if they can find any).

The fisherman returns after some time but he is alone and has some salmon that he had prepared. When asked, the fisherman tells him that his best friend fell off the boat and drowned in the water. Starving for so long, he eats the meal while crying for his friend.

After being rescued, he goes to a diner and orders salmon. When he eats his meal, he jumps and commits suicide. Why did he do it?

Asked by Neha on 22 May 2024

Hot Articles

Amazing Facts

Gambling

In Canada, a mathematical puzzle must be solved in order to win the lottery to classify it as a “game of skill” not gambling.