Skip to content

Commit 81e491f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent ef06b3d commit 81e491f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

dynamic_programming/climbing_stairs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
Author: Noorin Rahila
55
"""
66

7+
78
class Solution:
89
def climbStairs(self, n: int) -> int:
910
a = 1
@@ -19,8 +20,8 @@ def climbStairs(self, n: int) -> int:
1920
b = c
2021
return b
2122

23+
2224
# Example usage
2325
if __name__ == "__main__":
2426
s = Solution()
2527
print(s.climbStairs(5)) # Output: 8
26-

0 commit comments

Comments
 (0)