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

Forwards I am heavy, backward I am not. What am I?

Asked by Neha on 01 Aug 2025


The Little ant seems to be always confused. Do you know why?

Asked by Neha on 26 May 2024

How is a fly different from a mosquito?

Asked by Neha on 15 Jul 2023


I am the one who remains awake when you sleep. But I need to rest when you awake. Who Am I?

Asked by Neha on 23 Jan 2025

Find The Next Number in the series:

12 13 15 17 111 113 117 119 123 ?

Asked by Neha on 01 Dec 2023

You are playing a probability game with your friend using a fair coin. Both of you decide on a particular sequence that you have to achieve.

Let us suppose you chose the sequence to be: H T H
Your friend chose the sequence to be: H T T

Now you keep tossing coins until you get the sequence and the same is done by your friend. You keep doing that till you achieve your predefined sequence and keep writing the result on paper. At the end of the game the player whose average number of tosses will be lowest, he will win.

The results of the game 1 toss:
You: H T T H T H
Your score: 6
Your friend: H T H H H T H H T T
Your friends' score: 10

The results of the game 2 toss:
You: T T H T T H H T H
Your score: 9
Your friend: T T H H T H T T
Your friends' score: 8

The results of the game 3 toss:
You: T T H H T H
Your score: 6
Your friend: H H T H T T
Your friends' score: 6

Now after 3 games, your average score is 7 and your friend's average score is 8. Now assume that you keep playing the game and play many times. What will be the possible outcome of the following?

a) You win
b) Your friend win
c) Tie

Asked by Neha on 12 Oct 2026


In a secret society, a buried chamber can be accessed only via a secret password. The password is seven characters long and comprises of just letters and numbers.

You find a code that can help you in cracking the password. The code says "You force heaven to be empty".

Can you deduce the password from that?

Asked by Neha on 14 May 2021

Which is heavier: a ton of bricks or a ton of feathers?

Asked by Neha on 28 Feb 2022

We have shown you a regular water barrel as below. Without using any measuring device can you check if the barrel is more than half-filled or less than half-filled?

Half Filled barrel

Asked by Neha on 10 May 2023


Name one eight-letter word with 'kst' in the middle, 'in' the beginning, 'and' at the end.?

Asked by Neha on 09 May 2024

Hot Articles

Amazing Facts

No Solution

In 2007, a puzzle was released and $2 million prizes were offered for the first complete solution. The competition ended at noon on 31 December 2010, with no solution being found. Wiki