Easy1-D DPNeetCode 150 · #99/150
Climbing Stairs
- 1Learn the pattern
Define dp[i] in words first, then the recurrence is usually one line. Start from the base cases.
- 2Watch it run
See this exact pattern animated step by step before you touch the keyboard.
Open visualizer - 3