InterviewDB
Experience
Monster Fights: Simulate Battle Outcomes and Determine Winning Strategy
phone
Interview Experience
Problem You have a list of monsters, each with (health, attack). Two monsters fight: each round, both deal their attack value to the other simultaneously. A monster dies when its health reaches 0 or below. Given your monster and a list of opponents, return how many you can defeat. For a follow-up variant: you can choose the fight order. You keep your current health between fights. Determine the maximum number of monsters you can defeat before dying. Follow-ups Prove or disprove: greedy (fight lo…
Full Details
🔒
Unlock all Confluent questions
Full insider details, leaked discussions, and candidate experiences.
Get full access — $100 a year, unlimited accessAbout This Question
This is a candidate experience report from a confluent interview during the phone round.
It covers the following topics: Coding, Greedy, Phone, Onsite .