Search⌘ K
AI Features

Solution: Min Cost Climbing Stairs

Solution: Min Cost Climbing Stairs gives stair costs and allows one- or two-step moves. Starting freely at step zero or one, return the minimum cost to reach the top beyond the last stair.

Statement

You are given an integer array, cost, where cost[i] represents the cost of stepping onto the ithi^{th} ...