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

What goes through cities and fields, but never moves?

Asked by Neha on 10 Mar 2025


Using exactly three matchsticks, can you divide the area into two equal parts?

Area Division with matchsticks Riddle

Asked by Neha on 20 Jul 2026

I know a nine-letter word having only one vowel.
Do you ?

Asked by Neha on 19 Jun 2023


In a town, there are four houses located at different distances from each other. Following are the distances:

The third house is 60 meters apart from the first house.
The fourth house is 40 meters apart from the second house.
The third house is 10 meters nearer to the fourth house than it is to the second house.

Can you find out the distance between the fourth and the first house?

Asked by Neha on 14 Sep 2024

The day before yesterday I was 25 and the next year I will be 28. This is true only one day in a year. What day is my birthday?

Asked by Neha on 07 Dec 2025

You are playing a probability game with your friend using a fair coin. Both of you decide on a particular sequence that you have to achieve.

Let us suppose you chose the sequence to be: H T H
Your friend chose the sequence to be: H T T

Now you keep tossing coins until you get the sequence and the same is done by your friend. You keep doing that till you achieve your predefined sequence and keep writing the result on paper. At the end of the game the player whose average number of tosses will be lowest, he will win.

The results of the game 1 toss:
You: H T T H T H
Your score: 6
Your friend: H T H H H T H H T T
Your friends' score: 10

The results of the game 2 toss:
You: T T H T T H H T H
Your score: 9
Your friend: T T H H T H T T
Your friends' score: 8

The results of the game 3 toss:
You: T T H H T H
Your score: 6
Your friend: H H T H T T
Your friends' score: 6

Now after 3 games, your average score is 7 and your friend's average score is 8. Now assume that you keep playing the game and play many times. What will be the possible outcome of the following?

a) You win
b) Your friend win
c) Tie

Asked by Neha on 12 Oct 2026


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

Asked by Neha on 13 Mar 2022

An American nightclub called 'The Coconut Grove' had a terrible fire in which over 400 people died. A simple design flaw in the building led to a high death toll. Subsequently, regulations were changed to ensure that all public buildings throughout the country eliminated this one detail, which proved deadly. What was it?

Asked by Neha on 05 Oct 2024

Can you replace the "?" in the picture table below with the appropriate numbers?

Picture Number Series Riddle

Asked by Neha on 07 Nov 2026


Replace the question mark with the correct number in below Picture:

Replace the Number

Asked by Neha on 30 May 2021

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.