Array
746. Min Cost Climbing Stairs
Climb stairs paying cost[i] to step off stair i, moving 1 or 2 steps at a time, starting free from stair 0 or 1; reach the top (just past the last stair) for minimum total cost. It's the canonical…
Loading…
Climb stairs paying cost[i] to step off stair i, moving 1 or 2 steps at a time, starting free from stair 0 or 1; reach the top (just past the last stair) for minimum total cost. It's the canonical…
Loading…