Solve relative-truth cat puzzle
SIG (Susquehanna)Data Scientist · Online AssessmentLast updated
This question evaluates logical deduction, constraint satisfaction, and quantitative manipulation of percentages and averages within a relative truth/lie framework, and is categorized under Statistics & Math and discrete logic puzzles.
Asta, Bronya, and Clara have different numbers of cats. They say: Bronya to Clara: "You have the most cats." Asta to Bronya: "I have exactly 30% more cats than you." Asta to Clara: "Your number of cats is the average of Bronya’s and mine." Clara to Asta: "You have at least 4 more cats than me." A speaker tells the truth when talking to someone with fewer cats and lies when talking to someone with more cats. Not all statements are true. How many cats does Asta have?
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.