You are viewing a single comment's thread. Return to all comments →
why this 'if (letter[i] % 2 == 1)' and why not this 'if (letter[i] % 2 == 0)'
The condition checks to see if any letter appears an odd number of times. If so it will increment the count variable. You can have at most one letter appear an odd number of times - and this letter will then be the center of the palindrome.
Bc who's look like qus format