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