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

In the given figure, move three matchsticks so that the resulting figure contains two rectangles.

Matchsticks Rectangles

Asked by Neha on 25 Jul 2024


Find the missing letter in the last circle logically in the given below picture.

Apply Logic in Alphabet

Asked by Neha on 02 Apr 2024

I am the fastest animal but cannot climb the tree. What am I?

Asked by Neha on 29 Oct 2025


I can be cracked, made, told, and played. What am I?

Asked by Neha on 16 Aug 2025

You measure my life in hours
I serve you by expiring
I vanish faster when I am thin
and slower when I am thick
The wind is my energy
What am I?

Asked by Neha on 14 May 2021

John and his team plan to rob a safe. They got just one chance to break the code else the local police will be informed. Below are clues:
A) Exactly one number is perfectly placed: 9 8 1
B) Everything is incorrect: 9 2 4
C) Two numbers are part of the code of the safe but are wrongly placed: 0 9 3
D) One number is part of the code of the safe but is wrongly placed: 1 4 7
E) One number is part of the code of the safe but is wrongly placed: 7 8 3

Asked by Neha on 27 Apr 2024


I can sizzle like bacon,
I am made with an egg,
I have plenty of backbone, but lack a good leg,
I peel layers like onions, but still remain whole,
I can be long, like a flagpole, yet fit in a hole.

Asked by Neha on 07 Dec 2023

A man is found dead with a knife in his back When the investigation is done. A chair lays beside him and the forensic team finds moisture around the body.

If he committed suicide, how did he do it?

Asked by Neha on 29 Nov 2025

Four men were in a boat on the lake. The boat turns over, and all four men sink to the bottom of the lake, yet not a single man got wet! Why?

Asked by Neha on 22 Oct 2024


All of Jacob's shoes are red except two.
All of Jacob's shoes are green except two.
All of Jacob's shoes are yellow except two.

How many shoes does Jacob have?

Asked by Neha on 15 Feb 2025

Hot Articles

Amazing Facts

Rubik’s Cube

The inventor of the Rubik’s Cube didn’t realize he’d built a puzzle until he scrambled it the first time and tried to restore it.