Problem 3659 · Medium

Partition Array Into K-Distinct Groups

Split the values into equal groups of k where no group repeats a value. Counting each value settles it.

Open the interactive visualisation