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

Rose, Lily and Jasmine decided to buy flowers for their moms on Mother's Day. One of them bought lilies, the other roses, and the third one jasmines.
'It's funny!' said the girl with roses, 'we bought roses, jasmines and lilies, but none of us bought the flowers matching her name'.
'You're right!', said Lily.
What kind of flowers did each of the girls buy?

Asked by Neha on 07 Apr 2025


How many pluses should we put between the digits of 987654321 to get a total of 99, and where?

Asked by Neha on 25 Sep 2021

Baseball bat and ball cost $100. If the bat cost $99 more than the ball, what is the cost of each?

Asked by Neha on 23 May 2021


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

There is a shop where written:
Buy 1 for $1
10 for $2
100 for $3
I needed 999 and still only paid $3. How could this be financially viable for the shop-keeper?

Asked by Neha on 24 Dec 2025

What are the next two letters in the following series and why?
W A T N T L I T F S _ _

*Hint: Check Puzzle Title

Asked by Neha on 12 May 2023


What does below rebus means ?

Break the Riddle

Asked by Neha on 15 Jan 2021

Different lights make me strange by changing me into different sizes. What am I?

Asked by Neha on 09 Sep 2025

Can you name some countries which do not have the alphabet 'A' in them?

Asked by Neha on 17 Aug 2024


What is common among 11, 69, and 88?

What is common here

Asked by Neha on 15 Sep 2023

Hot Articles

Amazing Facts

Jigsaw puzzles

Jigsaw puzzles soared in popularity during the great depression, as they provided a cheap, long-lasting, recyclable form of entertainment.