Brute Force / Simulation
Iterate until non-decreasing or length is less than 2
On each iteration save index of a minimum sum to process before next iteration if needed.
Iterate until non-decreasing or length is less than 2
On each iteration save index of a minimum sum to process before next iteration if needed.

```golang []
func minimumPairRemoval(nums []int) int {
	ops := 0
	decrease := true
	for decrease && len(nums) > 1 {
		decrease = false
		minSum := nums[0] + nums[1]
		j := 0
		for i := 1; i < len(nums); i++ {
			if nums[i-1] > nums[i] {
				decrease = true
			}
			sum := nums[i-1] + nums[i]
			if sum < minSum {
				minSum = sum
				j = i - 1
			}
		}
		if decrease {
			ops += 1
			nums = append(append(nums[:j], minSum), nums[j+2:]...)
		}
	}
	return ops
}
```
['Go']