#746

Min Cost Climbing Stairs

easy· 1-D DPruns: 0

You are given an integer array cost where cost[i] is the cost of stepping on the ith stair. Once you pay the cost, you can climb either one or two stairs. You can start from the stair with index 0 or 1. Return the minimum cost to reach the top.

sign in to paste and practice your own solution
desktop only

codedrill is a typing game and needs a real keyboard. open this on a laptop or desktop to practice.

you can still browse problems and sections from your phone.