Python | Easy & Understanding Solution
```\nclass Solution:\n    def minOperations(self, nums: List[int]) -> int:\n        n=len(nums)\n        if(n==1):\n            return 0\n        \n        ans=
```\nclass Solution:\n    def minOperations(self, nums: List[int]) -> int:\n        n=len(nums)\n        if(n==1):\n            return 0\n        \n        ans=0\n        \n        for i in range(1,n):\n            if(nums[i]<=nums[i-1]):\n                ans+=nums[i-1]-nums[i]+1\n                nums[i]=nums[i-1]+1\n        \n        return ans
['Python', 'Python3']