Skip to content

Commit d1f3963

Browse files
committed
changed space complexity
1 parent 9e962d8 commit d1f3963

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

climbing-stairs/samthekorean.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Time complexity : O(n)
2-
# Space complexity : O(n)
2+
# Space complexity : O(1)
33
class Solution:
44
def climbStairs(self, n: int) -> int:
55
a = 1

0 commit comments

Comments
 (0)