# Idea: invert array to 'int', then invert the 'int' type to the array after add one.
def plusOne(self, digits):
strnum = ''
for i in xrange(len(digits)):
strnum += str(digits[i])
return [x for x in str(int(strnum) + 1)]
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.