Evenly distribute weights


  • 0
    P

    Give an array (length>6) with each number stands for the weight of a stone. Now we want to distribute those stones into 6 buckets as evenly as possible.
    e.g. [6, 5, 7, 9, 12, 17, 36, 25] --> [36, 25,17, 12, 14, 13]


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.