mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-06 09:23:19 +08:00
Update solution 0066
This commit is contained in:
@ -12,6 +12,7 @@ func plusOne(digits []int) []int {
|
||||
} else {
|
||||
digits[i] += carry
|
||||
carry = 0
|
||||
break
|
||||
}
|
||||
}
|
||||
if digits[0] == 0 && carry == 1 {
|
||||
|
Reference in New Issue
Block a user