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 word is identified by the below rebus?

Your Your Your Your Your
Your Your Your Your Your

Asked by Neha on 27 Jul 2023


our enemy challenges you to play Russian Roulette with a 6-cylinder pistol (meaning it has room for 6 bullets). He puts 2 bullets into the gun in consecutive slots, and leaves the next four slots blank. He spins the barrel and hands you the gun. You point the gun at yourself and pull the trigger. It doesn't go off. Your enemy tells you that you need to pull the trigger one more time, and that you can choose to either spin the barrel at random, or not, before pulling the trigger again. Spinning the barrel will position the barrel in a random position.

Assuming you'd like to live, should you spin the barrel or not before pulling the trigger again?

Asked by Neha on 04 May 2022

How many times in a given day, minutes and hour clock comes in a straight line ?

Asked by Neha on 03 Mar 2023


What number divided by 4 is the same as that number minus 4?

Asked by Neha on 09 Oct 2025

If there are fifteen crows on a fence and the farmer shoots a third of them, how many crows are left?

Asked by Neha on 17 May 2021

All Marigolds are flowers.
Few Flowers are used to make colors.
Therefore, some Marigold are used to make colors.

True Or False?

Asked by Neha on 24 Feb 2026


I am dry when I go inside, but wet when I am pulled outside.
The longer I am inside, the stronger I get
When I am completely out, I am wet and I literally sag
Who am I?

Asked by Neha on 11 Feb 2026

Find the hidden tiger in the given optical illusion ?

Find the Tiger

Asked by Neha on 13 Jan 2021

It can't be seen, can't be felt, can't be heard, and can't be smelt.
It lies behind stars and under hills, And empty holes it fills.
It comes first and follows after, Ends life, and kills laughter.
What is it?

Asked by Neha on 17 May 2021


Why is it against the law for a man living in Delhi to be buried in Mumbai?

Asked by Neha on 20 Oct 2024

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.