Back to Questions

Min Cost Climbing Stairs

43.6K viewsAsked 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.

Practice with This Question
Min Cost Climbing Stairs - Interview Question