Problem 1481 · Medium

Least Number of Unique Integers after K Removals

Remove exactly k items to leave the fewest distinct values. The visual groups equal values and removes the smallest groups first.

Open the interactive visualisation