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

You may enter, but you may not come in. I have space, but no room. I have keys, but open no lock. What am I?

Asked by Neha on 23 Oct 2021


A man is found hanging dead from the ceiling of a room. The room’s dimensions are 15 x 15 x 15. The man is only 6ft tall and the rope was only 2ft long. There are no windows and only one door to the room. The door is bolted shut from the inside, and a puddle of water is under the man. How did he kill himself?

Asked by Neha on 03 Sep 2025

I have cities, but no houses. I have mountains, but no trees. I have water, but no fish. What am I?

Asked by Neha on 25 Jul 2025


100 prisoners are stuck in the prison in solitary cells. The warden of the prison got bored one day and offered them a challenge. He will put one prisoner per day, selected at random (a prisoner can be selected more than once), into a special room with a light bulb and a switch which controls the bulb. No other prisoners can see or control the light bulb. The prisoner in the special room can either turn on the bulb, turn off the bulb or do nothing. On any day, the prisoners can stop this process and say "Every prisoner has been in the special room at least once". If that happens to be true, all the prisoners will be set free. If it is false, then all the prisoners will be executed. The prisoners are given some time to discuss and figure out a solution. How do they ensure they all go free?

Asked by Neha on 20 Apr 2022

In the following picture, E is going to slide the object down and as per the terrain and the physics, the round object is going to travel all the way till the end. Now, can you analyze who all people will die when it happens?

Who All Dies

Asked by Neha on 21 Mar 2021

How old is your son? asked a man to his neighbour. My son is five times as old as my daughter and my wife is five times as old as my son. I am twice as old as my wife whereas my grandmother, who is celebrating her eighty-first birthday is as old as all of us put together.

How old is the man's son ?

Asked by Neha on 17 May 2021


It comprises roots which nobody sees,
Much taller than those trees,
Up and up it goes,
Still it never grows?

Asked by Neha on 02 Jan 2025

By what process could you make a 'Tea-Table' into food?

Asked by Neha on 16 Aug 2023

Two girls were born to the same mother, on the same day, at the same time, in the same month and year and yet they're not twins. How can this be ?

Asked by Neha on 26 May 2021


What Adam and Eve do not have but the rest of the people have?

Asked by Neha on 15 Mar 2023

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.