Prisoner to be freed

The warden meets with 23 new prisoners when they arrive. He tells them, "You may meet today and plan a strategy. But after today, you will be in isolated cells and will have no communication with one another.

"In the prison is a switch room, which contains two light switches labeled 1 and 2, each of which can be in either up or the down position. I am not telling you their present positions. The switches are not connected to anything.

"After today, from time to time whenever I feel so inclined, I will select one prisoner at random and escort him to the switch room. This prisoner will select one of the two switches and reverse its position. He must flip one switch when he visits the switch room, and may only flip one of the switches. Then he'll be led back to his cell.

"No one else will be allowed to alter the switches until I lead the next prisoner into the switch room. I'm going to choose prisoners at random. I may choose the same guy three times in a row, or I may jump around and come back. I will not touch the switches, if I wanted you dead you would already be dead.

"Given enough time, everyone will eventually visit the switch room the same number of times as everyone else. At any time, anyone may declare to me, 'We have all visited the switch room.'

"If it is true, then you will all be set free. If it is false, and somebody has not yet visited the switch room, you will all die horribly. You will be carefully monitored, and any attempt to break any of these rules will result in instant death to all of you"

What is the strategy they come up with so that they can be free?




Similar Riddles

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


Manish and Manoj play 5 games of chess.
Both Manish and Manoj win the exact same number of games. There is no tie at all.

How?

Asked by Neha on 11 Feb 2024

There was a kingdom in which the king had no heir to take over his thrown. Even the queen was dead and he himself was on the verge of dying. He thought about it and then summoned all of the teenagers. He gave one seed each to all of them and asked them to grow the plant. He announced that the one with the most beautiful plant will become the king/queen of the empire after the death of the king.

After a month, all of them were called. The king looked at all of the plants but announced the girl with an empty pot as the queen of the empire. Why?

Asked by Neha on 24 Sep 2024


If you drop me I’m sure to crack, but give me a smile and I’ll always smile back. What am I?

Asked by Neha on 07 Mar 2025

Where do you go to learn how to make ice cream?

Asked by Neha on 07 Aug 2024

Three friends decide to distribute the soda cans they had among them. When all of them had drunk four cans each, the total number of cans that remained was equal to the cans each one of them had after they had divided the cans.

Can you calculate the total number of cans before distribution?

Asked by Neha on 12 May 2025


John has eleven friends. He has a bowl containing eleven apples. Now He wants to divide the eleven apples among his friends, in such a way that an apple should remain in his bowl.
How can He do it?

Asked by Neha on 05 Mar 2025

Shyla was sleeping in her apartment when suddenly a robber broke into her house. He asked her to stay quiet and started looting the cash and jewelry. Suddenly the landline phone started ringing. The robber pointed a gun at Shyla and asked her to pick up and talk without giving away the situation.

She picked up the phone and it happened to be her husband. She spoke, Is it an emergency darling? Do give me a call when your flight lands, I will prepare your favorite food that will help you relieve the stress. Then she hanged up.

10 minutes after, the police arrive at the scene and catch the robber. How did the police know about the robbery?

Asked by Neha on 31 Mar 2023

The first person saw the bridge step on it and crossed,
the second person saw the bridge did not step on it but crossed,
the third person did not see the bridge did not step on it but crossed.
Who are these people?

Asked by Neha on 14 May 2021


Queen Elizabeth organised a royal party.

To Avoid uninvited guest royal family set a password.
Jack (an uninvited person) plan to enter the party. He stand nearby the door.

First guest comes, the security person said 'twelve' and guest replied with six.
Second guest comes , the security person said 'six' and guest replied with 'three'.

Jack thought is enough and he walked to the entry point. The security person said 'eight' , Jack replied smilingly 'four'.
He was immediately thrown out of the party. why ?

Asked by Neha on 09 Aug 2021

Hot Articles

Amazing Facts

No Solution

In 2007, a puzzle was released and $2 million prizes were offered for the first complete solution. The competition ended at noon on 31 December 2010, with no solution being found. Wiki