Easy15 pts
The Hurdle Race
Max height Dan can jump: k. Hurdle heights. Doses add 1 to k. Min doses to clear all?
Input
n k\nheights[]
Output
Min doses (0 if k>=max).
Sample
5 4 1 6 3 5 2
Expected
2
Loading editor…
Output
No output yet. Run your code to see results.