← ALL NOTES
Array

3507. Minimum Pair Removal to Sort Array I

Given an array nums. Per operation, find the adjacent pair with the minimum sum (ties broken leftmost), and replace it with a single sum element. Find the minimum number of operations to make the…

Loading…