Problems > Evening the Counts > Editorial

Evening the Counts — Solution & Editorial

Back to the Problem

Each odd-count character needs exactly one more; answers is the count of odd frequencies.

Complexity: O(|S|)