Skip to main content

One doc tagged with "Memoization"

View all tags

Climbing Stairs

You need to find the number of distinct ways to climb a staircase with `n` steps, given that you can take either 1 or 2 steps at a time.