Prisoner Hat Puzzle Solution
However if 2 and 3 have hats of different colours then 1 can say nothing.
Prisoner hat puzzle solution. Thus B can see A and his hat colour and C can see A and B. A prisoner can see hats of all prisoners in front of him in the queue but cannot see his hat and hats of prisoners standing behind him. The key is that.
Episode 8 of the course Challenging logic puzzles For the sake of explanation lets label the prisoners in line order A B and C. Number 2 sees number 3s hat. 3 Prisoners and 5 Hats.
His only purpose is to wear the fourth hat. If prisoner 1 observes that prisoners 2. The puzzle is to find how the prisoners can escape.
So if C observes that A and B have hats of the same colour C would deduce. Each one of the prisoners knows that there are 4 hats 2 black and 2 white. 4 prisoners wearing black and white hats Prisoner 2.
The 10 colours will be given codes from 0 to 9. Being able to see 3s hat he can deduce his own hat. This is enough for 99th person.
The jailer liked to play tricks on his. The puzzle is as follows. Then prisoner 1 gave the right answer.