LeetCode 1282: Group the People, from Capacity Buckets to Emitting Full Groups
People who request the same group size belong in the same bucket, but one bucket may contain several groups. Build two connected solutions and learn to validate answers with no fixed order.