标签:git for sed reverse dig rev range color solution
class Solution: def plusOne(self, digits: List[int]) -> List[int]: for i in reversed(range(len(digits))): if digits[i] == 9: digits[i] = 0 else: digits[i] += 1 return digits digits[0] = 1 digits.append(0) return digits
标签:git for sed reverse dig rev range color solution
原文地址:https://www.cnblogs.com/WJZheng/p/11415451.html