Easiest Approach C++
\nclass Solution {\npublic:\n    int minOperations(vector<int>& nums) {\n        int count=0;\n        int temp=0;\n        \n        for(int i=0;i<nums.size()-
```\nclass Solution {\npublic:\n    int minOperations(vector<int>& nums) {\n        int count=0;\n        int temp=0;\n        \n        for(int i=0;i<nums.size()-1;i++){\n            if(nums[i]>=nums[i+1]){\n                 temp=nums[i]-nums[i+1]+1;\n                 nums[i+1]+=temp;\n                 count+=temp;  \n        \n            }\n            \n        }\n        return count;\n    }\n};\n```
['C']