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

There is a wide field of corn. A goose finds its way into the field and starts running. Can you find out till which point the goose can run into the field?

Asked by Neha on 27 Oct 2023


Evil warlock dislikes dwarfs and therefore he selects four of them and buries them. The dwarfs are buried in the ground and they are in such a way that except for their heads, their body is inside the ground. The dwarfs cannot move their body and they can view only forward. They are all buried in a line, and amongst the four, one of the dwarfs is separated by a wall. All the dwarfs are in the same direction. The last dwarfs can see two heads of friends in the front and a wall. In the last second dwarf can see one head of his friend and a wall. The second dwarf can see only the wall. The dwarf can see nothing.
Warlock comprehends the situation and tells the dwarfs that he has placed hats on their heads. There are two blue hats and two red ones. In all four dwarfs, one of them has to say what colour hat he is wearing. If the dwarf says the correct colour of the hat, they will be left free. If the answer is wrong, then they will be dug inside the ground till the very end.

What will be the answer by the dwarf and how will they answer?

Asked by Neha on 14 May 2025

A man dies of old age on his 25 birthday. How is this possible?

Asked by Neha on 13 Feb 2022


Can you count the number of lines in the below picture?

Count The Number Of Lines

Asked by Neha on 27 Dec 2023

Decode this picture on T-Shirt and tell what it says ?

Learn Decoding

Asked by Neha on 11 Mar 2021

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

Asked by Neha on 17 Aug 2024


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

In the given figure, move three matchsticks so that the resulting figure contains two rectangles.

Matchsticks Rectangles

Asked by Neha on 25 Jul 2024

👉 I am a 7 letter word.
👉 I like mornings
👉 If you remove my 1st letter you can drink me
👉 If you remove my 1st & 2nd letters 👉 you may not like me
👉 If you remove my last letter, you will see me on television
👉Answer is really very interesting
Let us see who solves this....

Asked by Neha on 14 May 2021


A police officer was passing by when he saw a guy hiding. He walked up to him and genially asked, "What is your name?"

"Shut up!" the boy responded.

"Where are your manners?" asked the outraged police officer.

"Up that tree," said the boy discourteously, directing to a neighbouring tree.

You're looking for trouble, aren't you?" said the police officer.

"No, trouble is looking for me!" the boy answered solemnly.

Why is the boy behaving like this?

Asked by Neha on 10 May 2026

Hot Articles

Amazing Facts

Out of the Box

The phrase “thinking outside the box” was popularised from the solution to a topographical puzzle involving 9 dots in a box shape.