class Solution(object): def plusOne(self, digits): """ :type digits: List[int] :rtype: List[int] """ return [int(y) for y in str(int(("").join([str(x) for x in digits]))+1)]