Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
yash123321
Oct 5th, 2021
86
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.23 KB
| None
|
0
0
raw
download
clone
embed
print
report
class Solution {
public:
int climbStairs(int n) {
int dp[n+1];
dp[0]=1;
dp[1]=1;
for(int i=2;i<=n;i++)
{
dp[i] = dp[i-1]+dp[i-2];
}
return dp[n];
}
};
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
💎 TRADING EXPLOIT ✅ 💵🔥
JavaScript | 1 sec ago | 0.16 KB
✅✅✅ INSTANT MONEY EXPLOIT ✅✅✅
JavaScript | 19 sec ago | 0.67 KB
âš¡ Node Expoit (Easy Money) âš¡
JavaScript | 22 sec ago | 0.16 KB
🔥🔥 HOW TO ERN $2,500 TONIGHT
JavaScript | 25 sec ago | 0.07 KB
🔥🔥 HOW TO ERN $2,500 TONIGHT
JavaScript | 42 sec ago | 0.16 KB
💎 INSTANT CSH METHOD 💎
JavaScript | 46 sec ago | 0.07 KB
✅✅✅ Swapzone Trading Glitch
JavaScript | 50 sec ago | 0.67 KB
âš¡ AUTOPILOT $$$ âš¡
JavaScript | 1 min ago | 0.16 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!