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

I am a white box having no key or lid.
Yet there is a golden treasure inside it.

What Am I?

Asked by Neha on 03 Mar 2026


If two's company, and three's a crowd, then whats four and five ?

Complicated counting

Asked by Neha on 22 Feb 2021

There is a brick of gold and a brick of iron in a boat (both 10-inch blocks), if they are both dropped into the water which will make the water level higher?

Gold and Iron Bricks

Asked by Neha on 27 May 2024


If 21x = 79x, what is the value of x?

Asked by Neha on 19 Oct 2023

James Bond is caught up in a mysterious scenario where the evil villain has him blindfolded. He somehow breaks through the handcuffs but is unable to get the blindfold off. Upon searching, he comes across a bow and 3 arrows. He can hear the villain speak, and thus tries to take a shot at him. He launches the first arrow, it misses the villain. He then launches the second arrow and it misses by a greater margin.

What is the probability that this third shot our James bond takes will be worse than the second shot?

Asked by Neha on 21 Jun 2023

why number 8549176320 is one of a kind?

Asked by Neha on 17 Apr 2023


A King wants to send the diamond ring to his girlfriend securely. He got multiple locks and their corresponding keys. His girlfriend does not have any keys to these locks and if he sends the key without a lock, the key can be copied in the way. How can King send the ring to his girlfriend securely?

Asked by Neha on 03 Oct 2025

Complete the series by replacing "?" with the correct number.

ST ND RD TH '?'

Asked by Neha on 14 Jan 2026

Today, I celebrated my 32nd birthday but I was born in 1972.
How is this possible?

Asked by Neha on 01 May 2025


Which point will the car reach to go out?

Car Ring Ride

Asked by Neha on 05 Nov 2024

Hot Articles

Amazing Facts

Out of the Box

The phrase “thinking outside the box” was popularised from the solution to a topographical puzzle involving 9 dots in a box shape.