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 does this rebus puzzle means ?

Rebus Picture Problem

Asked by Neha on 18 Jul 2023


Do you know of a place where the wind blows south and then suddenly shifts direction towards the north?

Asked by Neha on 14 Sep 2025

Intelligence Agency need to break the vault but the problem is that they are not able to break the vault.

On the vault, a text is written as:

31 11 33 33 43 45
21 25
31 24 11 31 51 41

To Break the code Intelligence Agency brings a mathematician named Joseph.
Minutes later he deciphers the code.

Whats the code?

Asked by Neha on 14 May 2021


Client Dempsey living in one of the East Coast states of the U.S. was talking to Landon Donovan, who was living in the West Coast state of the U.S.

Dempsey: What time is it?
Donovan: Wow, It is the same time here.

How is this possible?

Asked by Neha on 30 Apr 2025

There is a river to cross using a river raft and there are eight people (father, mother, policeman, thief, 2 daughters and 2 sons). No one knows to operate the raft except the adults and also excluding the thief. Only two people can go in the raft at a time. The raft should keep coming back and forth in order to pick and drop the people.
Rules to be followed:
Father: the father cannot stay in the raft or outside the raft without the presence of the mother.
Mother: the mother cannot stay in the raft or outside the rat without the presence of the father.
Thief: the thief is not allowed to stay with any of the family members unless there is a policeman.
Policeman: the policeman can travel with anyone.
2 sons and 2 daughters: they are not allowed to travel in the raft without the presence of an adult. They cannot either travel in the presence of only thieves without the policeman. The sons cannot be with their mothers without their father's supervision. The daughters are not allowed to be there with their fathers without the supervision of their mothers. But the daughters and the sons can be left unsupervised (as long as the other rules are applied).
What is the sequence that the people should follow in order to cross the river through the raft keeping in mind all the rules?
The rules are applicable not only in the raft but also outside the raft.

Asked by Neha on 14 Aug 2023

You have a thousand Re. 1 coins with you. You have ten bags with you and you can put any number of coins in each of the bags. The condition is that if someone asks you for any amount between 1 and 1000, you must be able to give that amount by just giving the bag (you are not allowed to open the bag and give coins).

How will you do it?

Asked by Neha on 12 May 2024


Can you make a six-letter word using the letters N, A and B ?

Asked by Neha on 29 Aug 2021

Which part of London exists in France as well ?

Asked by Neha on 17 Feb 2021

I have branches, but no fruit, trunk or leaves. What am I?

Asked by Neha on 13 Feb 2022


Alex is stranded on an island covered in forest.
One day, when the wind is blowing from the west, lightning strikes the west end of the island and sets fire to the forest. The fire is very violent, burning everything in its path, and without intervention the fire will burn the whole island, killing the man in the process.

There are cliffs around the island, so he cannot jump off.

How can the Alex survive the fire? (There are no buckets or any other means to put out the fire)

Asked by Neha on 12 Sep 2021

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.