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

Through your logical capabilities, can you make 7 an even?

Asked by Neha on 04 Mar 2026


You see me once in June, twice in November, and not at all in May. What am I?

Asked by Neha on 31 Jul 2025

There are two insects on a tile. Insect X is sitting on one side of the tile (point A) and Insect Y is sitting opposite on the other side of the tile (point B). Now both of them decide to change their position and thus X starts crawling to point B and Y starts crawling to point A. When they meet and pass each other in between, X takes 20 seconds to reach B and Y takes just 5 seconds to reach A.

Can you calculate the total time each of the insects took to change their positions?

Asked by Neha on 25 Feb 2026


I am a mother. However, I never give birth.

I am a father. However, I never nurse my children.

Wandering is not possible for me, but standing still happens occurs rarely.

Who am I?

Asked by Neha on 30 Oct 2024

I am a ten letters word
The first four letters have the power to rule,
Next, four-letter can be eaten.
The next three-letter represents a lady.
I can fly as well

what am I looking for?

Asked by Neha on 05 Jul 2023

What is the word or phrase?


HOROBOD Rebus riddle

Asked by Neha on 10 May 2021


A man and a dog were going down the street. The man rode, yet walked. What was the dog’s name?

Asked by Neha on 10 Mar 2022

How can you make number one disappear by adding something to it?

Asked by Neha on 08 May 2024

How many bananas can you eat if your stomach is empty?

Asked by Neha on 13 Mar 2022


What are the 50th, 63rd and 100th numbers in the sequence below?
4, 5, 8, 8, 9, 9, 12, 13, 13, 13, 17, 18, ...

Asked by Neha on 08 Feb 2024

Hot Articles

Amazing Facts

Crossword

The day before the 1996 U.S. presidential election, the NYT Crossword contained the clue “Lead story in tomorrow’s newspaper,” the puzzle was built so that both electoral outcomes were correct answers, requiring 7 other clues to have dual responses.