@rolfl I have a problem similar to this problem that I was hoping you could advise me on. I have an unsorted list of unique numbers. I have to find two unique pairs that sum to the same value. Also, this value has to be as small as possible. Eg, the set {1, 4, 3, 2} would give 5 because (1, 4) and (2, 3) will be the pairs. If I had {1, 4, 2, 3, 30, 10, 25, 15} I would not get 40 with (25, 15) and (30, 10) because it is not the minimum possible sum. 5 is. —
Ogen 5 mins ago