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

If we tell you that there is a relation between the numbers and letters in the given figure, can you analyze it and find the missing letter in the last box?

Relationship in Numbers and Letters

Asked by Neha on 11 Jun 2023


A Car driver was heading down a street in Washington. He went right past a stop sign without stopping, he turned left where there was a 'no left turn' sign and he went the wrong way on a one-way street. Then he went on the right side of the road past a cop car. Still, he didn't break any traffic laws. Why not?

Car Driver Going Wrong

Asked by Neha on 03 Mar 2021

Why is Saturday stronger than Monday?

Asked by Neha on 13 Feb 2023


A word I know,
Six letters contain,
Subtract just one,
And twelve is what remains.

Asked by Neha on 18 Feb 2024

We are a group of eight brothers. We consider the weak, yet we protect the king in every battle. If we move ahead, we never turn back. Who are we?

Asked by Neha on 15 Feb 2026

A container contains 100 eggs. They can be either fresh or rotten. What is sure is the fact that there is at least one fresh egg in that container.

If you are asked to pick two eggs randomly from the container, at least one of them will be rotten.

Can you calculate how many eggs in that container are fresh?

Asked by Neha on 19 Nov 2023


The husband and wife were jogging in the morning. To match every two steps of the husband, the wife required three steps. If Both of them start with the here right foot. After how many steps do their left foot be together?

Asked by Neha on 08 Feb 2025

A pack of cards has 40 cards. You are blindfolded. Out of 40, 25 cards are facing down while 15 are facing up. You have been asked to divide this pack of cards into two decks - so that each deck contains an equal number of face-up cards. Remember, you are blindfolded.

How will you do it?

Asked by Neha on 10 Jan 2026

Replace all '*' with digits 1, 2, 3, 4, 5 and 6 to make below statement true.

* *
x *
=====
* * *

Asked by Neha on 29 Jul 2021


What does Alexander the Great and Winnie the Pooh have in common?

Asked by Neha on 17 Jul 2025

Hot Articles

Amazing Facts

Artificial Intelligence

Artificial Intelligence has crushed all human records in the puzzle game “2048,” achieving a high score of 839,732 and beating the game in only 973 moves without using any undo.