Problem 2708 · Medium

Maximum Strength of a Group

Take every positive value and pair up the negatives from the largest magnitude, unless nothing positive can be formed.

Open the interactive visualisation