Increment and decrement string counts, and always know a key with the highest and the lowest count — all in O(1).
Increment and decrement string counts, and always know a key with the highest and the lowest count — all in O(1).
Opens with the full question.