Halloween Sale
Unlock all premium questions for over 30% off
Monster Hierarchy Battle
Hard
Question
Monsters are organized in a hierarchy shaped like an n-ary tree. Every monster has a unique name, a hostile status, and a toBeat list naming the monsters directly below it, which it can defeat. A monster that defeats another one also defeats everything that monster can defeat, so a monster defeats every monster in the tree below it. Hostile monsters are drawn with an asterisk (*) in the diagrams.
...
Asked at:Confluent
More Confluent interview questions
- Design Infinite Queue With Constant-Time GetRandommedium
- Tail Last N Lineseasy
- Variadic Function Signature Matchingmedium
- Design Phrase Search Inverted Indexhard
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.