Search⌘ K
AI Features

Solution: Climbing Stairs

Let's solve the Climbing Stairs problem using the Dynamic Programming pattern.

Statement

You are climbing a staircase. It takes n steps to reach the top. Each time, you can either climb 11 or 22 ...