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

Replace each alphabet with the number (1-9) to make the below equation correct.

AB * C = DE - F = GH / I

Asked by Neha on 29 Aug 2024


The day before yesterday I was 25 and the next year I will be 28. This is true only one day in a year. What day is my birthday?

Asked by Neha on 07 Dec 2025

There is an exact a week gap between Christmas and New Year. Hence, It is obvious that the new year that comes right after Christmas comes on the same day of the week.

A Strange thing happened in the Year 1777. Christmas occurs on Wednesday and New Year on Monday. How is that possible?

Asked by Neha on 19 Dec 2025


The host of a game show, offers the guest a choice of three doors. Behind one is a expensive car, but behind the other two are goats.
After you have chosen one door, he reveals one of the other two doors behind which is a goat (he wouldn't reveal a car).

Now he gives you the chance to switch to the other unrevealed door or stay at your initial choice. You will then get what is behind that door.

You cannot hear the goats from behind the doors, or in any way know which door has the prize.

Should you stay, or switch, or doesn't it matter?

Asked by Neha on 06 Aug 2021

The Brit lives in the red house.
2. The Swede keeps dogs as pets.
3. The Dane drinks tea.
4. The greenhouse is on the immediate left of the white house.
5. The greenhouse’s owner drinks coffee.
6. The owner who smokes Pall Mall rears birds.
7. The owner of the yellow house smokes Dunhill.
8. The owner living in the centre house drinks milk.
9. The Norwegian lives in the first house.
10. The owner who smokes Blends lives next to the one who keeps cats.
11. The owner who keeps the horse lives next to the one who smokes Dunhill.
12. The owner who smokes blue masters drinks beer.
13. The German smokes Prince.
14. The Norwegian lives next to the blue house.
15. The owner who smokes Blends lives next to the one who drinks water.
Now, the question is…Who owns the fish?

Asked by Neha on 12 Sep 2025

Three cars are driving on a track that forms a perfect circle and is wide enough that multiple cars can pass anytime. The car that is leading in the race right now is driving at 55 MPH and the car that is trailing at the last is going at 45 MPH. The car that is in the middle is somewhere between these two speeds.
Right now, you can assume that there is a distance of x miles between the leading car and the middle car and x miles between the middle car and the last car and also, x is not equal to 0 or 1.
The cars maintain their speed till the leading car catches up with the last car and then every car stops. In this scenario, do you think of any point when the distance between any two pairs will again be x miles i.e. the pairs will be x distance apart at the same time ?

Asked by Neha on 08 May 2021


Doctor Alex and a bus driver John are both in love with the same woman named Olivia. The bus driver need to go for a long trip of 10 days, Before he left he gave Olivia 10 apples.

Asked by Neha on 22 Aug 2024

You are given with the following sum. Each of the letters can be decoded as a digit. If we tell you that D = 5, then can you solve it entirely?

DONALD
+GERALD
=ROBERT

Asked by Neha on 29 Jun 2021

Double it and multiply it by 4. Then divide it by 8 and you’ll have it once more. What number is it?

Asked by Neha on 23 Oct 2025


What is in seasons, seconds, centuries and minutes but not in decades, years or days?

Asked by Neha on 03 Nov 2025

Hot Articles

Amazing Facts

Gamers

In 2011, people playing Foldit, an online puzzle game about protein folding, resolved the structure of an enzyme that causes an Aids-like disease in monkeys. Researchers had been working on the problem for 13 years. The gamers solved it in three weeks.