Puzzle 5: Solve the following puzzle:
There are 2 Red and 2 Black hats. Every person is wearing one hat, anyone can tell the color of his hat and all 4 will be free. There is only one chance to say the color by anyone.
Conditions are:
a) Person 1 & person 2 can see only wall.
b) Person 3 can see person 1 and wall.
c) Person 4 can see person 1&2 and wall.
Show Solution
Solution: Person 1 is a trap here, nothing to do with, Person 3 or Person 4 will give the correct answer based on the following use case:
a) If Person 2 & 3 is wearing red caps then person 4 can say his hat color as black without doubt.
b) Similarly, If Person 2 & 3 is wearing black caps then person 4 can say his hat color as red without doubt.
c) Now if Person 2 & 3 is wearing different color caps then Person 4 will not say anything, he will remain silent. For example after 1 min wait person 3 knows that person 4 is not answering that means he and person 2 is wearing different color caps. Then he can see the color of person 2 cap and can tell color of his cap accordingly.
No comments:
Post a Comment