Problem 3662 · Easy

Filter Characters by Frequency

Total each letter across the string, then keep every occurrence of the letters whose total is below k.

Open the interactive visualisation