Im trying to split (say) N pink, fluffy balls into M groups as evenly as possible.
Eg: 9 Balls and 4 groups, i'd have a result set of the form: {3,2,2,2}, where each value is indicating the size of each subset.
Can anyone help me understand how to write an equation or algorithm that would solve this problem?
Thanks