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 Logic Riddles

Jim has three close friends at his school: Michael, John and Alice. Two of them play football, two play basketball and two play hockey. The friend who does not play hockey does not play basketball as well. The friend who does not play football does not play hockey.

Can you identify which sport/s is played by which person?

Asked by Neha on 21 Mar 2026


A new clothing store has a unique method of pricing items. A vest costs $20, a tie costs $15, a blouse costs $30, and underwear costs $45. How much would pants cost?

Asked by Neha on 22 Oct 2025

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

ST ND RD TH '?'

Asked by Neha on 14 Jan 2026


Find the next number in the series below.

6 18 270 72090 ?

Asked by Neha on 27 May 2026

A quarter is one-fourth of a dollar but Mr. John has changed the equation as below :

DOLLAR * 4 = QUARTER

Can you replace each letter with a digit to make the above solution correct?

Asked by Neha on 15 Mar 2026

John, Jack and Jill are in a desert. John doesn't like Jill and hence decides to murder him. He poisons the water supply of Jill. Since it is a desert area, Jill must drink or he will die of thirst.

Jack does not know of the actions of John and also decides to murder Jill. To succeed in his ill motives, he removes the water supply of Jill so he dies of thirst.

Jill dies due to thirst. Who murdered Jill?

Asked by Neha on 08 Aug 2023


I always drive my customer away.

Who am I?

Asked by Neha on 29 Oct 2024

The husband and wife were jogging in the morning. To match every two steps of the husband, the wife required three steps. If Both of them start with the here right foot. After how many steps do their left foot be together?

Asked by Neha on 08 Feb 2025

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


On a magical land of Mexico , all the animal in the land are rational.

There are 10 tigers and one goat.
Tiger can eat goat but since it's a magical land , the tiger who eats the goat , turns into goat and then can be eaten by the remaining tiger(s).

If we leave them for some time then how many goat and tiger will be there , when we come back ?

Asked by Neha on 31 May 2021

Hot Articles

Amazing Facts

Crossword puzzles

In the 1920s, people feared that crossword puzzles would contribute to illiteracy.