← ALL NOTES
Array

1877. Minimize Maximum Pair Sum in Array

Array nums of even length. Split it into n/2 pairs so that the maximum pair sum is as small as possible; return that minimised maximum. Sort, then pair the smallest with the largest, second-smallest…

Loading…