easy python code
\nclass Solution:\n    def minOperations(self, nums: List[int]) -> int:\n        count = 0\n        for i in range(len(nums)-1):\n            if nums[i] >= nums
```\nclass Solution:\n    def minOperations(self, nums: List[int]) -> int:\n        count = 0\n        for i in range(len(nums)-1):\n            if nums[i] >= nums[i+1]:\n                count += (nums[i]+1)-nums[i+1]\n                nums[i+1] = nums[i]+1\n        return count\n```\nhope it helped you,\nif it did, plz consider **upvote**
['Python', 'Python3']