Problem 451 · Medium

Sort Characters By Frequency

Reorder a string so that equal characters are grouped and the groups appear from most frequent to least frequent. The visual tallies each character and then draws its block of repeats in descending frequency order.

Open the interactive visualisation