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

What can jump higher than a building?

Asked by Neha on 24 Oct 2025


There are nine dots in the picture that has been attached with this question. Can you join all the dots by drawing four straight lines without picking up your pen?

Dots on Lines

Asked by Neha on 11 Nov 2023

Railroad Crossing, look out for the cars. Can you spell that, without any R's ?

Asked by Neha on 14 May 2021


When my father was 31 I was 8. Now he is twice as old as me. How old am I?

Asked by Neha on 01 Oct 2021

What number does the below three word/phrase identify and why?
1. Deck
2. Year
3. Singing in the Rain

Asked by Neha on 21 Feb 2024

The below given figure comprises of a pattern through which you can determine the missing letter. Can you push your mind to find the pattern and add the missing letter?

Replace the (?)

Asked by Neha on 30 Jun 2023


A California farmer owns a beautiful pear tree. He supplies the fruit to a nearby grocery store. The store owner calls the farmer to see how much fruit is available for him to buy. The farmer knows the main trunk has 24 branches. Each branch has exactly 12 boughs and each bough has exactly 6 twigs. Since each twig bears one piece of fruit, how many plums will the farmer be able to deliver?

Asked by Neha on 24 May 2025

There are hundred red gems and hundred blue gems. The blue gems are priceless while the red gems equal wastage. You have two sacks one labeled Heads and the other Tails. You have to distribute the gems as you want in the two sacks. Then a coin will be flipped and you will be asked to pick up a gem randomly from the corresponding sacks.

How will you distribute the gems between the sacks so that the odds of picking a Blue gem are maximum?

Asked by Neha on 29 May 2023

You have two bottles of pills marked with labels A and B. The pills are identical. The doctor has asked you to take one A pill and one B pill daily. You cant take more or less than that.

While taking out the pills one day, you took out one pill from A and by mistake took out two from B. You have no idea which pill is which now.

You cant throw away the expensive pills. What will you do now?

Asked by Neha on 02 Jul 2023


You have 10 balls with you. A friend of yours out of nowhere asks you to place those ten balls in five lines such that each of the lines has exactly 4 balls on them. He needs to check your intelligence. Prove him by doing the task.

Asked by Neha on 17 Mar 2023

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.