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

Why Wine Glass Stem is so long?

Wine Glass

Asked by Neha on 24 Jul 2023


A river should be crossed by a father, a mother and their two sons and two daughters.
There are some rules that should be followed while crossing the river. There can be only two people in the raft while crossing. The daughters cannot be with their father unless there is the presence of the mother. The sons cannot be with their mothers unless the father is present. Unless the guard is on the board, the criminals cannot be with any of the family members. Only the adults like the father, the guard, and the mother knows to use the raft.

How will they cross the river?

Asked by Neha on 28 Jun 2021

You want to boil a two-minute egg. If you only have a three-minute timer (hourglass), a four-minute timer and a five-minute timer, how can you boil the egg for only two minutes?

Asked by Neha on 17 May 2021


Two guards were on duty outside a barracks. One faced up the road to watch for anyone approaching from the North. The other looked down the road to see if anyone approached from the South. Suddenly one of them said to the other, "Why are you smiling?"

How did he know his companion was smiling?

Asked by Neha on 24 Apr 2022

A dead body is found outside a multi-story multinational company. The case is reported and a homicide detective is called on the crime scene.

He looks at the body and then towards the building. From the position of the body, it is evident that the victim committed suicide. He goes to the first floor of the building and then walks in the direction of the dead body, opens the window and toss a coin in the air.

He goes to second floor and again repeats the process. He keeps doing this till he is done on all the floors. Then he returns back to the floor and tells his team that it is a murder.

How in heaven did he deduce that?

Asked by Neha on 10 Sep 2021

There once were seven dwarfs who were all brothers. They were all born two years apart. The youngest dwarf is seven years old. How old is his oldest brother?

Asked by Neha on 13 Jun 2025


One absent-minded ancient philosopher forgot to wind up his only clock in the house. He had no radio, TV, telephone, internet, or any other means for telling time. So he travelled on foot to his friend's place a few miles down the straight desert road. He stayed at his friend's house for the night and when he came back home, he knew how to set his clock. How did he know?

Asked by Neha on 29 Feb 2024

Why did Buffon take the goal with him after every Juventus match?

Asked by Neha on 24 Apr 2025

How can you spell "White of an egg" in one word?
Hint: I know you can spell coke, poke, and joke.

Asked by Neha on 14 Apr 2025


There are people and strange monkeys on this island, and you can not tell who is who (Edit: until you understand what they said - see below). They speak either only the truth or only lies.
Who are the following two guys?
A: B is a lying monkey. I am human.
B: A is telling the truth.

Asked by Neha on 12 Jul 2023

Hot Articles

Amazing Facts

Word ladder puzzle

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