My one line python solution


  • 0
    Y
    class Solution(object):
        def plusOne(self, digits):
            return [int(c) for c in str(int(str.join("", [str(c) for c in digits]))+1)]
    

Log in to reply
 

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