python


  • 0
    U

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


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.