Skip to content

Commit fbcc991

Browse files
committed
leetcode.com 66. Plus One
문제 링크: https://leetcode.com/problems/plus-one
1 parent 942ba71 commit fbcc991

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

leetcode.com 66. Plus One/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def plusOne(self, digits: List[int]) -> List[int]:
1111
for d in digits:
1212
d += carry
1313

14-
if d >= 10:
14+
if d == 10:
1515
carry = 1
1616
d = 0
1717
else:

0 commit comments

Comments
 (0)