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

John’s parents have three sons: Snap, Crackle, and what’s the name of the third son?

Asked by Neha on 14 Feb 2022


To tease, King Akbar told his most clever advisor Birbal to give his daughter one thing that she can eat when hungry, drink if she feels thirsty and can burn if she feels cold. King Akbar was shocked when Birbal gave Akbar's daughter one such thing that satisfies all of the above.

What did Birbal give to Akbar's daughter?

Asked by Neha on 28 Jan 2023

An exterior architect is asked by a builder to plant seven trees in a manner that there are exactly six rows of trees in a straight line and each row has three trees in particular.

How will he do it?

Math Figure Puzzle

Asked by Neha on 03 Apr 2023


Can you find the least possible number such that

If the number is divided by 3, it gives the remainder of 1;
If the number is divided by 4, it gives the remainder of 2;
If the number is divided by 5, it gives the remainder of 3;
If the number is divided by 6, it gives the remainder of 4.

Asked by Neha on 23 Oct 2024

Can you think of any three-dimensional shape that comprises of exactly two surfaces?

Asked by Neha on 27 Mar 2025

There is a movie name hidden in the picture that is attached with this question. Can you find out which movie is it?

Movie in Rabus

Asked by Neha on 14 May 2021


What is 3/7 chicken, 2/3 cat and 2/4 goat?

Asked by Neha on 20 Mar 2025

Why is 6 afraid of 7?

Asked by Neha on 28 Oct 2024

Why 1729 is a magic number? Answer Logically.

Asked by Neha on 08 Dec 2023


Three people check into a hotel. They pay $60 for the rent of the room. After they check-in, the manager realize that the rent for the room is $55. So, he gives $5 to the bellboy and asks him to give it to them. The bellboy thinks that it will be difficult for the three people to share $5 among them and seeking the personal benefit, he pockets $2 and gives the remaining $3 to them.

Now, each person paid $20 and got back $1. In this manner, each of them paid just $19 which totals to the amount of $57. The bellboy has $2 with him and adding them, we get $59. So where is the remaining $1?

Asked by Neha on 02 Aug 2023

Hot Articles

Amazing Facts

Word ladder puzzle

The word ladder puzzle was invented by Lewis Carroll, author of Alice’s Adventures in Wonderland.