Climbing Stairs — December 3, 2026
You are climbing a staircase that takes n steps to reach the top. Each time you can either climb 1 or 2 steps. Return the number of distinct ways you can climb to the top. Constraints: 1 <= n <= 45 Example: text Input: n = 3 Output: 3 Explanation: There are three ways to climb to the top. 1. 1 step