You can climb 1 or 2 steps at a time. Return how many distinct ways to reach step `n`. Variant **#17**.
Example 1
Input: n = 20
Output: 10946
Constraints
Acceptance: 62% · Topics: dynamic-programming, math
← All practice problems