class Solution:
def plusOne(self, digits: List[int]) -> List[int]:
src = [str(i) for i in digits]
num = int(''.join(src))
ret = [int(i) for i in str(num + 1)]
return ret
LeetCode--加一
最新推荐文章于 2024-08-21 10:11:50 发布