Problem 347 · Medium
Count frequencies then bucket by frequency; scan buckets from high to low to collect top-k.
Open the interactive visualisation