0ms java solution
public int[] plusOne(int[] digits) {\n        int i = digits.length - 1;\n        while(i >= 0){\n            if(digits[i] == 9)\n                digits[i--] = 
    public int[] plusOne(int[] digits) {\n        int i = digits.length - 1;\n        while(i >= 0){\n            if(digits[i] == 9)\n                digits[i--] = 0;\n            else{\n                digits[i]++;\n                return digits;\n            }\n        }\n        int[] array = new int[digits.length+1];\n        array[0] = 1;\n        return array;\n    }
['Java']