Search
⌘K

Leetcode 2910. Minimum Number of Groups to Create a Valid Assignment

Given counts of numbered balls, split them into the fewest monochromatic boxes (you may split identical-valued balls across boxes) so that every box contains only one value and the sizes of all boxes differ by at most one. Determine the minimum number of boxes needed for up to 1e5 balls.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.