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

A rubber ball keeps on bouncing back to 2/3 of the height from which it is dropped. Can you calculate the fraction of its original height that the ball will bounce after it is dropped and it has bounced four times without any hindrance ?

Asked by Neha on 16 Sep 2024


Two friends were betting. One said to the other, "The coin will be flipped twenty times and each time the coin lands on the head, I will give you $2 and each time it lands on the tale, you will give me $3." After flipping the coin twenty times not a single penny was exchanged among them.

How many times did the coin land on heads?

Asked by Neha on 28 Jan 2025

A girl was standing near the window thinking something. All of a sudden she decides something and throws something out of the window. She dies very soon after throwing it. She was perfectly healthy and had no disease or allergy. No one killed her and she did not commit suicide.

Can you think of any possible explanation that is logical as well for what happened there?

Asked by Neha on 25 Aug 2021


A car key is hidden in the picture. Can you spot it.? Quickly test your eye power now!

Find the car key

Asked by Neha on 03 Oct 2026

Before Balboa discovered the Pacific Ocean, which was the largest ocean before that?

Asked by Neha on 03 Jul 2026

John was piloting a plane behind a car but was never able to overtake it. Why?

Asked by Neha on 04 Dec 2023


John and his wife were living in a rural place. On a particular day, John's wife fell ill and he called the local doctor. When the doctor picked up, he said, "Doctor, my wife is ill. She might have appendicitis."

"This can't be possible! I took out her appendix two years ago myself," the doctor explained.

When diagnosed, John's wife was found to have appendicitis. How can this be possible?

Asked by Neha on 19 Jun 2024

Can you count the number of triangles in the given picture?

Count The Triangles <br />

Asked by Neha on 29 Dec 2024

A convention is held where all the big logicians are summoned. The master places a band on everyone's forehead. Now all of them can see others bands but can't see his own. Then they are told that there are different colours of bands. All the logicians sit in circle and they are further explained that a bell will ring at regular intervals. The moment when a logician knew the colour of band on his forehead, he will leave at the next bell. If anyone leaves at the wrong bell, he will be disqualified.

The master assures the logicians that the puzzle will not be impossible for anyone of them. How will the logicians manage ?

Qualcomm Logic Interview Puzzle

Asked by Neha on 26 Jul 2021


Once upon a time, three rivals got together in a dark wood on an open spot to compose a quarrel by using guns. It was a kind of duel but there were three people in it and therefore it was a truel. There were A, B and C. There were some rules to be followed in the game. The rules of the games were:
-They have to draw the lots in order to find who will fire first who will be second and who will be third.
- The next rule is that they will start firing on each other unless there is a last person alive.
- Each person will decide on his own about which person he will fire on.
-it is quite clear that A hits and kills in all the shots and it is 100%. Whereas 80% of the shots are hit by B and C hits 50% of the shots he tries to fire. the three persons have their strategies for firing. Nobody is killed by the stray bullet.

Question: who will have the highest chance of surviving in the truel and how much is the chance?

Asked by Neha on 18 Sep 2026

Hot Articles

Amazing Facts

Rubik’s Cube

The inventor of the Rubik’s Cube didn’t realize he’d built a puzzle until he scrambled it the first time and tried to restore it.