Greedy
149 / 170GreedyLesson 3 of 9About 43 min
Breadth-first search over an array, where each level is a contiguous stretch and needs no queue at all.
The walk spends a jump each time it reaches the end of the current level. On an input of n positions, which range should it walk, and why?
Read the constraints first and let them tell you what complexity is expected. Derive the approach, implement it, run the tests, and submit when it passes.