Problem 2576 · Medium
Sort the values, then pair the smallest available value with the smallest large-enough partner.
Open the interactive visualisation