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 is harder to catch the faster you run?

Asked by Neha on 17 Sep 2021


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

Asked by Neha on 18 Feb 2024

While house hunting in London, I came across a very good leasehold property Discussing the lease the landlady told me:

'The property was originally on a 99 years lease and two-thirds of the time passed is equal to four-fifths of the time to come. Now work it out for yourself and see how many years are to go!

Asked by Neha on 18 Apr 2022


What breaks yet never falls, and what falls yet never breaks?

Asked by Neha on 09 Mar 2025

Be active and find the killer in the picture Riddle below.


Who is Killer

Asked by Neha on 17 May 2021

Count the number of triangles in the below picture?

Triangles Count

Asked by Neha on 12 Oct 2023


At Delhi Cricket Clubhouse, there were four kids(Kohli, Yuvraj, Pant, and Dhoni) ages 1,2,3 and 4 and have 1,2,3 and 4 cricket balls in different orders.

We know the following facts:

Kohli has more cricket balls than his age.
Dhoni is older than Yuvraj.
One child has the same number of cricket balls as his age.
Pant has fewer cricket balls than Dhoni.
A child aged 3 has two cricket-balls.

Pant is the youngest.

Can you determine the age of the children and the number of cricket balls they have?

Asked by Neha on 17 Jul 2026

You walk into a room and see a bed. On the bed, there are two dogs, five cats, a giraffe, six cows, and a goose. There are also three doves flying above the bed. How many legs are on the floor?

Asked by Neha on 23 May 2025

On a bus, there is a 26-year-old pregnant lady.
A 30-year-old policeman.
A 52-year-old random woman.
And the 65-year-old driver.

Who is the youngest?

Asked by Neha on 12 Feb 2023


How many triangles can you count in the figure given?

How Many Triangles Puzzle

Asked by Neha on 06 Dec 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.