My C++ Solution with few lines
class Solution {\n    public:\n        vector<int> plusOne(vector<int> &digits) {\n            bool carry = true;\n            \n            for(int i=digits.si
    class Solution {\n    public:\n        vector<int> plusOne(vector<int> &digits) {\n            bool carry = true;\n            \n            for(int i=digits.size()-1; i >= 0 && carry; i--) {\n                carry = (++digits[i]%=10) == 0;\n            }\n    \n            if(carry) {\n                digits.insert(digits.begin(), 1);\n            }\n        \n            return digits;\n        }\n    };
['C++']