Problem 2268 · Easy

Minimum Number of Keypresses

Give the most frequent letters the cheapest key slots: sort the counts and assign slots in order.

Open the interactive visualisation