Min Cost Climbing Stairs
Min Cost Climbing Stairs
Subhrajit Makur
Nov 14, 2020 · 4 min

Min Cost Climbing Stairs

MP3

On a staircase, the i-th step has some non-negative cost cost[i] assigned (0 indexed).

Once you pay the cost, you can either climb one or two steps. You need to find minimum cost to reach the top of the floor, and you can either start from the step with index 0, or the step with index 1.

This podcast uses Anchor (from Spotify) for stats, tracking, and dynamic audio. What this means Episodes play from the podcast's own servers, unmodified. Not affiliated with Podbay.