Find the minimum cost to reach the top of a staircase given per-step costs.
Constraints
Example
>>> min_cost_climbing_stairs([10, 15, 20]) 15 >>> min_cost_climbing_stairs([1, 100, 1, 1, 1, 100, 1, 1, 100, 1]) 6
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints