Back to QuestionsPractice with This Question
Min Cost Climbing Stairs
43.6K views•Asked at Spotify•
Easy
Question Explain
You are given an integer array `cost` where `cost[i]` is the cost to step on the $i$-th stair. You can either start at index 0 or index 1. Find the minimum cost to reach the top of the floor. Use DP.
Start Trying This Question Simulation
Practice answering orally or with text to get instant AI feedback.