Maximum Total Damage With Spell Casting
A Medium coding interview problem in the 1-D Dynamic Programming pattern.
MediumPractise in Recode
Likely pattern
Overlapping subproblems indexed by a single position.
Recognition cue: Count ways, min / max over choices at each index, and greedy fails a counterexample.
- Learn first
- Do not confuse it with
Topics
- Array
- Hash Table
- Two Pointers
- Binary Search
- Dynamic Programming
- Sorting
- Counting
Practise 1-D Dynamic Programming next
- 1Medium
- 2Medium
- 3Medium
- 4Medium
- 5Medium
- 6Medium
- 7Medium
- 8Medium