You are given an integer array balls.
You want to distribute all the elements of balls into groups such that:
Every element in the same group has identical values.
The difference in size between any two groups is at most
Return the minimum number of groups required to create a valid assignment.
Constraints:
balls.length
balls[i]
You are given an integer array balls.
You want to distribute all the elements of balls into groups such that:
Every element in the same group has identical values.
The difference in size between any two groups is at most
Return the minimum number of groups required to create a valid assignment.
Constraints:
balls.length
balls[i]