Problem 3693 · Medium

Climbing Stairs II

Shortest-path DP over steps where each jump of length d costs the step cost plus d squared.

Open the interactive visualisation