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