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

When I get multiplied by any number, the sum of the figures in the product is always me. What am I?

Asked by Neha on 10 Oct 2021


There is a river to cross using a river raft and there are eight people (father, mother, policeman, thief, 2 daughters and 2 sons). No one knows to operate the raft except the adults and also excluding the thief. Only two people can go in the raft at a time. The raft should keep coming back and forth in order to pick and drop the people.
Rules to be followed:
Father: the father cannot stay in the raft or outside the raft without the presence of the mother.
Mother: the mother cannot stay in the raft or outside the rat without the presence of the father.
Thief: the thief is not allowed to stay with any of the family members unless there is a policeman.
Policeman: the policeman can travel with anyone.
2 sons and 2 daughters: they are not allowed to travel in the raft without the presence of an adult. They cannot either travel in the presence of only thieves without the policeman. The sons cannot be with their mothers without their father's supervision. The daughters are not allowed to be there with their fathers without the supervision of their mothers. But the daughters and the sons can be left unsupervised (as long as the other rules are applied).
What is the sequence that the people should follow in order to cross the river through the raft keeping in mind all the rules?
The rules are applicable not only in the raft but also outside the raft.

Asked by Neha on 14 Aug 2023

Which city is three-fifths chick two third cat and 50% goat?

Asked by Neha on 25 Jan 2024


You are a cab driver who pools passengers. You pick 3 people from a destination and drop 1 after an hour. 2 people climb aboard at the same time and you drop 3 at the next destination. After some time, you pick 2 passengers only to drop 1 after a short distance where 3 more passengers climb up the cab. You leave the rest of the passengers one by one to their destination and then come back home.

Can you tell the eye color of the cab driver?

Asked by Neha on 06 Apr 2023

Suppose you are a girl candidate and sitting in an interview. Suddenly the interviewer asks you, 'What if one morning you wake up and find out that you are pregnant?

How will you reply to such a question?

Asked by Neha on 29 Apr 2023

A man who was outside in the rain without an umbrella or hat didn’t get a single hair on his head wet. Why?

Asked by Neha on 27 Oct 2021


A person was killed at a house party. When the police arrive, there are six people present in the house who are the friends of the victim. The name of the friends is Rohit, Aman, Nick, Gagan, and Randy.

Near the dead body, they find a few numbers written with blood by the victim on the floor. The numbers are 8, 5, 4, and 11.

The police arrests one of the friends for the murder. Whom did they arrest and why?

Asked by Neha on 04 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

What four weights can be used to balance from 1 to 30 pounds?

Asked by Neha on 25 Apr 2022


There are nine letters in the below-given diagram. You have to form a nine-letter word using these letters.

Word from nine Letters

Asked by Neha on 21 Dec 2023

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.