We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Game of Thrones - I
You are viewing a single comment's thread. Return to all comments →
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.