You climb a staircase of n steps, one or two steps at a time. Return how many distinct ways reach the top.
Patterns: dynamic-programming. Difficulty: easy.
Open in Dryrun