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

No matter how little or how much you use me, you change me every month. What am I?

Asked by Neha on 27 Jul 2025


There are three identical triplets sisters. Demi is the oldest of them all and she always speaks the truth. Diana is the next one who is a liar always. Drew, the youngest of them all speaks both truth and lies randomly.

On a rainy day, a family friend Victor visited them. Since there were starkly identical, he was not able to recognize them. Thus to clarify, he asked one question to each one of them.

He started with the one standing on the left and asked, 'Which sister is in the middle of you three?' She answered, 'That's Demi.'

Then, he asked the one standing in the middle, 'What is your name?' She answered, 'I am Drew.'

Finally, he asked the one standing on the right, 'Who is standing in the middle?' She answered, 'She is Diana.'

Victor was left baffled. He asked the questions three times and received different answers every time.

Can you tell who was who?

Asked by Neha on 19 May 2023

A father told his three sons he would die soon and he needed to decide which one of them to give his property to. He said, “Go to the market and buy something large enough to fill my bedroom, but small enough to fit in your pocket. From this, I will decide which of you is the wisest and worthy enough to inherit my land.” They all went to the market, and each came back with a different item. The father told his sons to come into his bedroom one at a time and try to fill up his bedroom with their items. The first son came in and put some pieces of cloth he bought and laid them across the room, but it barely covered the floor. The second son came in and laid some hay on the floor, but there was only enough to cover half the floor. The third son came in and showed his father what he bought. He wound up getting the property. What did the third son show his father?

Asked by Neha on 29 May 2025


Can you calculate the probability of getting a sum of six when a dice is thrown twice?

Asked by Neha on 11 Feb 2021

In the below-given picture of a pretty girl, there is something wrong. Can you find out what it is?

Funny Girl Puzzle

Asked by Neha on 20 May 2025

In this image, you can see three almost identical Doraemon images. Can you spot the odd one out from them?

Odd one out Doraemon picture riddle

Asked by Neha on 19 Apr 2021


By what process could you make a 'Tea-Table' into food?

Asked by Neha on 16 Aug 2023

A man who was outside in the rain without an umbrella or hat didn’t get a single hair on his head wet. Why?

Asked by Neha on 16 May 2022

A man walked into a pub and went straight towards the Barman. He asked for a dirty martini from the Barman. The Barman thought something and then pulled out a pistol from his drawer and aimed it directly at the man. Why did he do that?

Asked by Neha on 09 Nov 2023


Two friends decide to get together; so they start riding bikes towards each other. They plan to meet halfway. Each is riding at 6 MPH. They live 36 miles apart. One of them has a pet carrier pigeon and it starts flying the instant the friends start traveling. The pigeon flies back and forth at 18 MPH between the 2 friends until the friends meet.

How many miles does the pigeon travel?

Asked by Neha on 02 Aug 2021

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.