Min Cost Climbing Stairs

Min Cost Climbing Stairs

Min Cost Climbing Stairs

14/11/2020 8:52AM

Episode Synopsis "Min Cost Climbing Stairs"

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.

Listen "Min Cost Climbing Stairs"

More episodes of the podcast Min Cost Climbing Stairs