C++ brute force
\nint minOperations(vector<int>& nums) {\n        int count=0;\n        for(int i=0;i<nums.size()-1;i++){\n            if(nums[i]<nums[i+1]){\n                c
```\nint minOperations(vector<int>& nums) {\n        int count=0;\n        for(int i=0;i<nums.size()-1;i++){\n            if(nums[i]<nums[i+1]){\n                continue;\n            }\n            else{\n                count+=nums[i]+1-nums[i+1];\n                nums[i+1]=nums[i]+1;\n            }\n        }\n        return count;\n    }\n```
['C++']