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

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


There are two arch enemies Messi and Ronaldo who hate each other to an extreme. One day both were going together and a Jeanie appeared in front of them. Jeanie grants 3 wishes to Ronaldo and one to Messi.

Messi replied smartly 'Give me twice whatever Ronaldo demands'.

Ronaldo asked his 1st wish 'Give me 10000 billion dollars. Soon Messi gets 2000 billion dollars.
Ronaldo asked for his 2nd wish 'Give me one mansion in every country in the world. Soon Messi gets two mansions in every country of the world?

What should be Ronaldo's third wish?

Asked by Neha on 02 Mar 2024

Distances from you to certain cities are written below.

BERLIN 200 miles

PARIS 300 miles

ROME 400 milesAMSTERDAM 300 miles

CARDIFF ??? miles

How far should it be to Cardiff ?

Asked by Neha on 25 Feb 2021


A wife and her husband were driving in their car on the highway. All of a sudden, they ran out of gas. So the husband said to the wife, 'Now, you stay here. I will go down the highway to the nearest gas station, and it will be about 1 hour. Just listen to the radio and read some books, and remember to lock all the windows and doors. I will leave the keys with you.' So, off the husband went, and the wife first locked ALL the windows and doors. Next, she turned on the radio, and this is what she heard on the news report:
'THERE IS A MURDERER ON THE LOOSE. HE WAS LAST SEEN ON THE HIGHWAY, WEARING ALL BLACK, ABOUT 5 FOOT 11 INCHES. PLEASE, BE AWARE AND CONTACT THE POLICE IMMEDIATELY.' The wife got very scared. She turned off the radio and double-checked the locked doors. Then she saw the murderer, only a couple of feet away from the car. An hour later, the husband returned to his car. Inside the car, his wife was DEAD, she had been murdered. All the windows were still locked, and the doors. No windows were broken, and the car was in PERFECT condition. No scratches or anything, it was the same way as when he left it. How did the murderer kill the wife?

Asked by Neha on 13 Jul 2023

Bopanna was working on a murder case when he received a message about the location of the murder weapon.
The message was encrypted as below.

"deb mitciv eht edisni neddih si nopaew redrum ehT"

Tell me the location of the murder weapon.

Asked by Neha on 04 Jan 2026

Why 1729 is a magic number? Answer Logically.

Asked by Neha on 08 Dec 2023


On a certain day, John celebrated his birthday. Two days later, his older twin brother Jacob celebrated his birthday.

Is this even possible? How can it be?

Asked by Neha on 19 Jan 2021

A mules travels the same distance daily.
I noticed that two of his legs travels 10km and the remaining two travels 12km.
Obviously two mules legs cannot be a 2km ahead of the other 2.

The mules is perfectly normal. So how come this be true ?

Asked by Neha on 08 May 2021

A man started to town with a fox, a goose, and a sack of corn. He came to a stream which he had to cross in a tiny boat. He could only take one across at a time. He could not leave the fox alone with the goose or the goose alone with the corn. How did he get them all safely over the stream?

Asked by Neha on 05 Mar 2022


What's the only room from which no one can enter or leave

Asked by Neha on 15 Apr 2024

Hot Articles

Amazing Facts

Word ladder puzzle

The word ladder puzzle was invented by Lewis Carroll, author of Alice’s Adventures in Wonderland.