<<EASY THAN YOUR EXPECTATIONS>>
PLEASE UPVOTE MECode
# PLEASE UPVOTE ME
# Code
```cpp []
class Solution {
public:
    int minOperations(vector<int>& nums) {
        int a=0;
        for(int i=0;i<nums.size()-1;i++){
            if(nums[i+1]<=nums[i]) {
                a+=(nums[i]-nums[i+1])+1;
                nums[i+1]=nums[i]+1;}
        }
        return a;
    }
};
```
['C++']