Problem 1338 · Medium

Reduce Array Size to The Half

Remove the most frequent values first, because each removal clears the most entries per chosen value, until at least half the array is gone.

Open the interactive visualisation