Approach hintTry it first, then revealHide
Sort the numbers. The k largest serve as the friends' maximums, and a friend receiving one number counts it twice; fill the remaining slots so that friends taking the most numbers absorb the smallest values as minimums.