HomeInterview QuestionsWhat is the success rate of the whole group if suc…

What is the success rate of the whole group if success is defined as a person correctly stating the color of their own hat?

🟡 Medium Conceptual Junior level
1Times asked
May 2026Last seen
May 2026First seen

💡 Model Answer

In the classic hat‑guessing puzzle with two colors, a strategy can guarantee that all but one person guesses correctly. The first person uses a parity rule (e.g., says "red" if the number of red hats in front is even, otherwise says "blue"). Each subsequent person, hearing the previous guesses and seeing the hats ahead, can deduce their own color. Thus 99 out of 100 people are correct, giving a success rate of 99%. The only person who may be wrong is the first, because they have no information about their own hat.

This answer was generated by AI for study purposes. Use it as a starting point — personalize it with your own experience.

🎤 Get questions like this answered in real-time

Assisting AI listens to your interview, captures questions live, and gives you instant AI-powered answers — invisible to screen sharing.

Get Assisting AI — Starts at ₹500