Problem 2268 · Easy
Give the most frequent letters the cheapest key slots: sort the counts and assign slots in order.
Open the interactive visualisation