DSA
DSA copied to clipboard
Minimum cost for climbing stairs
Using Dynamic programming. Given an integer array C where C[i] is the cost of ith step on a staircase. Once we pay the cost, we can either climb one or two steps. we can either start from the step with index 0, or the step with index 1.
The output will be to return the minimum cost to reach the top of the floor.
Kindly please assign me this issue.
Hi, @coding-geek21, Hope you are fine. Can I also add some solutions here?