This is something a friend gave me and I’m still stuck.
There are eighteen people in a line. Each one is given a black or white hat randomly, there is no limit to the number of hats of each color so the whole crowd could end up with all white hats, all blacks hats, half white half black or 13 white and 5 black hats. And they are in a random order. A person cannot see their own hat but they can see the hat of all of the people in front of them in line. If one says the color of their own hat they make keep it, but if they get the wrong color they must return it. They start at the back of the line (the person who can see everybody else’s hats) and start asking. There is one way where there is a 50% chance that everybody can keep their hats and there is a way to ensure 100% that 17 out of the 18 people keep their hats.
-The people are allowed to discuss a strategy before they line up
- each person may only say one word, either “white” or “black”
How is this possible?