Evening the Counts — Solution & Editorial
Each odd-count character needs exactly one more; answers is the count of odd frequencies.
Complexity: O(|S|)
Each odd-count character needs exactly one more; answers is the count of odd frequencies.
Complexity: O(|S|)