Vasu vro
\'\'\' \nclass Solution {\npublic:\n    int minOperations(vector& nums) {\n        int k=0,op=0;\n        for(int i=1;i=nums[i]){\n                k=nums[i-1]-n
\'\'\' \nclass Solution {\npublic:\n    int minOperations(vector<int>& nums) {\n        int k=0,op=0;\n        for(int i=1;i<nums.size();i++){\n            k=0;\n            if(nums[i-1]>=nums[i]){\n                k=nums[i-1]-nums[i]+1;\n                nums[i]=nums[i]+k;\n            }\n            op=op+k;\n        }\n        return op;\n    }\n};\n\'\'\'
[]