You are given an integer array, cost, where cost[i] represents the cost of stepping onto the
Return the minimum total cost required to reach the position just beyond the last stair (the “top”).
Constraints:
cost.length
cost[i]
You are given an integer array, cost, where cost[i] represents the cost of stepping onto the
Return the minimum total cost required to reach the position just beyond the last stair (the “top”).
Constraints:
cost.length
cost[i]