Problem 1282 · Medium

Group the People Given the Group Size They Belong To

Partition people so each group has its members requested size.

Open the interactive visualisation