Leetcode 3659. Partition Array Into K-Distinct Groups
Determine whether the array can be partitioned into n/k groups of size k (using every element exactly once) such that each group contains only distinct values. Key constraint: n must be divisible by k, and no value's frequency can exceed the number of groups (n/k), since duplicates must go into different groups.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.