Easy java solution faster than 100% users
\nclass Solution {\n    public int[] plusOne(int[] digits) {\n        int n = digits.length;\n        for(int i =n-1;i>=0;i--){\n            if(digits[i]<9){\n 
```\nclass Solution {\n    public int[] plusOne(int[] digits) {\n        int n = digits.length;\n        for(int i =n-1;i>=0;i--){\n            if(digits[i]<9){\n                digits[i]++;\n                return digits;\n            }\n            digits[i]=0;\n            \n        }\n        int[] arr = new int[n+1];\n        arr[0]=1;\n        return arr;\n    }\n}\n```
['Array', 'Java']