python easy solution
\tclass Solution:\n\t\tdef minOperations(self, nums: List[int]) -> int:\n\t\t\tres = 0\n\t\t\tfor i in range(1, len(nums)):\n\t\t\t\tif nums[i] <= nums[i - 1]:\
\tclass Solution:\n\t\tdef minOperations(self, nums: List[int]) -> int:\n\t\t\tres = 0\n\t\t\tfor i in range(1, len(nums)):\n\t\t\t\tif nums[i] <= nums[i - 1]:\n\t\t\t\t\tres += nums[i - 1] - nums[i] + 1\n\t\t\t\t\tnums[i] = nums[i - 1] + 1\n\t\t\treturn res
[]