Go golang solution
Runtime: 16 ms, faster than 47.56% of Go online submissions for Minimum Operations to Make the Array Increasing.\nMemory Usage: 6.2 MB, less than 6.10% of Go on
>Runtime: 16 ms, faster than 47.56% of Go online submissions for Minimum Operations to Make the Array Increasing.\nMemory Usage: 6.2 MB, less than 6.10% of Go online submissions for Minimum Operations to Make the Array Increasing.\n\n```go\nfunc minOperations(nums []int) int {\n    ans := 0\n    for i := 1; i < len(nums); i++ {\n        if nums[i - 1] >= nums[i] {\n            ans += nums[i - 1] - nums[i] + 1\n            nums[i] += nums[i - 1] - nums[i] + 1\n        }\n    }\n    return ans\n}\n```
[]