Prisoners got freed

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?




Similar Riddles

You have a 12 liters jug full of water. You have two empty 8 liters and 5 liters jug. How can you divide the water into two equal parts using these jugs?

Asked by Neha on 21 Dec 2020


A dead body is found outside a multi-story multinational company. The case is reported and a homicide detective is called on the crime scene.

He looks at the body and then towards the building. From the position of the body, it is evident that the victim committed suicide. He goes to the first floor of the building and then walks in the direction of the dead body, opens the window and toss a coin in the air.

He goes to second floor and again repeats the process. He keeps doing this till he is done on all the floors. Then he returns back to the floor and tells his team that it is a murder.

How in heaven did he deduce that?

Asked by Neha on 10 Sep 2021

A man is shown a portrait painting. He looks closely, then tells, “Brothers and sisters have I none, but that man’s father is my father’s son!” Who is the man in the portrait?

Asked by Neha on 18 Jun 2025


There are two candles. Both will only burn exactly for an hour. How will you use these two candles to measure forty-five minutes?

Asked by Neha on 07 May 2024

It has a long neck, A name of a bird, Feeds on cargo of ships, It's not alive,

What is it?

Asked by Neha on 17 May 2021

Lady Gaga is pregnant and currently has 6 daughters

1. Dorry 2. Rebeka 3. Michael 4. Faniya 5. Sophia 6. Lavanya

What will she name her next child girl? (Think Logical)

A. Neema B. Tanya C. Tisha D. Jenniffer

Asked by Neha on 28 Aug 2024


You want to boil a two-minute egg. If you only have a three-minute timer (hourglass), a four-minute timer and a five-minute timer, how can you boil the egg for only two minutes?

Asked by Neha on 17 May 2021

Can you find the odd number in the following five choices?

1) 482636
2) 259807
3) 865195
4) 104739
5) 391744

Asked by Neha on 24 Nov 2024

On the occasion of Diwali, online seller companies in India are offering a big discount on Iphone14 as below.

: Flipkart offers a Flat 65% discount
: Amazon offers a 10% discount over and over again.
: Shopclues offers RS.45,000 off.

If the original cost of the iPhone is Rs.70,000 Which is the best offer for you?

Asked by Neha on 01 Sep 2024


Find out the number of circles in the given picture having Illusion

How many circles do you see?

Asked by Neha on 20 Apr 2021

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.