MCPcopy Create free account
hub / github.com/HuberTRoy/leetCode / plusOne

Method plusOne

Array/PlusOne.py:29–35  ·  view source on GitHub ↗

:type digits: List[int] :rtype: List[int]

(self, digits)

Source from the content-addressed store, hash-verified

27"""
28class Solution(object):
29 def plusOne(self, digits):
30 """
31 :type digits: List[int]
32 :rtype: List[int]
33 """
34
35 return list(map(int, list(str(int(''.join(map(str, digits)))+1))))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected