Welcome to the Python screen.
The question is on your right: Min Cost Climbing Steps. Read through the requirements first.
Run and submit your code as often as you need. You also have five interviewer messages this session - want to talk through your approach, or are you ready to start coding?
At Google, a checkout or navigation flow can be modeled as a staircase of steps with varying costs. Given an integer array cost, where cost[i] is the cost of stepping on stair i, return the minimum total cost needed to move beyond the final index.
You may start at index 0 or 1. From any stair, you may move forward by either 1 step or 2 steps. You pay the cost of every stair you land on, including the starting stair if you begin there.
costdef min_cost_climbing_stairs(cost):