Skip to content
We areTOP 1%

Climbing Stairs

EasyLeetCode1-D Dynamic Programming
Solve on LeetCode(opens in a new tab)
Track your progress
First attempt
Re-solve after a few days
Final pass before interviews
Approach hintTry it first, then reveal

The last move was either one step or two, so the number of ways to reach step i is the sum of the ways to reach i - 1 and i - 2.

More in 1-D Dynamic Programming

1-D Dynamic Programming questions
#ProblemPlatformDifficultyOpen1st1st Visit2nd2nd VisitRevRevise
1Climbing StairsLeetCodeEasy Solve Climbing Stairs on LeetCode (opens in a new tab)
2Min Cost Climbing StairsLeetCodeEasy Solve Min Cost Climbing Stairs on LeetCode (opens in a new tab)
3Long JumpsCodeforcesEasy 1100Solve Long Jumps on Codeforces (opens in a new tab)
4House RobberLeetCodeMedium Solve House Robber on LeetCode (opens in a new tab)
5House Robber IILeetCodeMedium Solve House Robber II on LeetCode (opens in a new tab)
6Decode WaysLeetCodeMedium Solve Decode Ways on LeetCode (opens in a new tab)
7Coin ChangeLeetCodeMedium Solve Coin Change on LeetCode (opens in a new tab)
8Word BreakLeetCodeMedium Solve Word Break on LeetCode (opens in a new tab)
9Longest Increasing SubsequenceLeetCodeMedium Solve Longest Increasing Subsequence on LeetCode (opens in a new tab)
10Cut RibbonCodeforcesMedium 1300Solve Cut Ribbon on Codeforces (opens in a new tab)
11Just Eat It!CodeforcesMedium 1300Solve Just Eat It! on Codeforces (opens in a new tab)
12Orac and ModelsCodeforcesMedium 1400Solve Orac and Models on Codeforces (opens in a new tab)
13BoredomCodeforcesMedium 1500Solve Boredom on Codeforces (opens in a new tab)
14Mortal Kombat TowerCodeforcesMedium 1500Solve Mortal Kombat Tower on Codeforces (opens in a new tab)
15Block SequenceCodeforcesMedium 1500Solve Block Sequence on Codeforces (opens in a new tab)

Sign in to track your progress

Your checkboxes, streak and activity heatmap are saved to your account and sync across devices. It is free.
Sign in with email

New here? Create an account