Evening the Counts
You may append characters to the end of S. Print the minimum number of appends so every character's count becomes even.
Input: one line with a lowercase string.
Output: the number of characters with odd counts.
Constraints:
- 1 ≤ |S| ≤ 105
Sample Tests
Input 1
aabbc
Output 1
1
Input 2
abab
Output 2
0
Discussion (opens after you solve — no spoilers before)
No comments yet.