Minimum Health to Beat Game

1 min read
๐ง Problem
๐ท๏ธ Tags
array, greedy, prefix-sum
๐ Difficulty
Medium
โ
Success Rate: 58.7%
๐ฅ Submissions: 2,054
๐ Accepted: 1,206
โค๏ธ Reactions
๐ Likes: 30
๐ Dislikes: 12
๐ก Hints
When should you use your armor ability? It is always optimal to use your armor ability on the level where you take the most amount of damage.
๐ Similar Questions
- Dungeon Game
- Eliminate Maximum Number of Monsters
Leetcode Link : Minimum Health to Beat Game
0
Subscribe to my newsletter
Read articles from RedAurther directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
