Skip to content

Commit 2f907bf

Browse files
committed
feat: update leetcode solutions: No.0070. Climbing Stairs
1 parent fade0fb commit 2f907bf

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

solution/0000-0099/0070.Climbing Stairs/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
class Solution:
4646
def climbStairs(self, n: int) -> int:
4747
a, b = 0, 1
48-
for i in range(n):
48+
for _ in range(n):
4949
a, b = b, a + b
5050
return b
5151
```

solution/0000-0099/0070.Climbing Stairs/README_EN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
class Solution:
5555
def climbStairs(self, n: int) -> int:
5656
a, b = 0, 1
57-
for i in range(n):
57+
for _ in range(n):
5858
a, b = b, a + b
5959
return b
6060
```
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class Solution:
22
def climbStairs(self, n: int) -> int:
33
a, b = 0, 1
4-
for i in range(n):
4+
for _ in range(n):
55
a, b = b, a + b
6-
return b
6+
return b

0 commit comments

Comments
 (0)