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

I can turn polar bears white.
I can make anyone dance.
I can make everyone cry
I can make your hands clap
I can make you thin.
I can make you smile.
I can make you smile

Can you guess the riddle?

Asked by Neha on 03 Jun 2024


What you cannot hold but it is yours?

Asked by Neha on 28 Dec 2024

Consider this about a word: The first two letters signify a male, the first three letters signify a female, the first four letters signify a great, while the entire world signifies a great woman. What is the word?

Asked by Neha on 08 Jun 2025


A farmer and his neighbour once went to Emperor Akbar"s court with a complaint. "Your Majesty, I bought a well from him," said the farmer pointing to his neighbour, "and now he wants me to pay for the water."
"That"s right, your Majesty," said the neighbour. "I sold him the well but not the water!"?
The Emperor asked Birbal to settle the dispute. How did Birbal solve the dispute?

Asked by Neha on 10 May 2021

It is a six-letter word.
The first four letters are me.
The second and last letters are the same.
The fourth second and last letter is payment.

Who is it?

Asked by Neha on 07 Feb 2024

A thief enters a store and threatens the clerk, forcing her to open the safe. The clerk says, “The code for the safe is different every day, and if you hurt me you’ll never get the code.” But the thief manages to guess the code on his own. How did he do it?

Asked by Neha on 14 Jun 2025


If you had a pizza with crust thickness 'a' and radius 'z', what's the volume of the pizza?

Asked by Neha on 30 May 2024

Why did Navjot Singh Sidhu put the new January calendar in the freezer

Asked by Neha on 01 Dec 2024

Spot 5 differences in two Christmas tree below:

Christmas Tree

Asked by Neha on 06 Jul 2021


Open a Laptop which is password protected. Hint for the password is given as below:

1 mobile 3 books 2 Boards 1 night 4 balls 2 lighters 1 ghost 1 hat 3 watches

Asked by Neha on 06 Apr 2022

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.