We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 864182b commit f34b332Copy full SHA for f34b332
climbing-stairs/krokerdile.py
@@ -0,0 +1,10 @@
1
+class Solution:
2
+ def climbStairs(self, n: int) -> int:
3
+ one, two = 1,1
4
+
5
+ for i in range(n-1):
6
+ temp = one;
7
+ one = one + two;
8
+ two = temp;
9
10
+ return one;
0 commit comments