You are viewing a single comment's thread. Return to all comments →
I have a question, how does this code ensure that when:
s[counter] != s[len - 1 - counter] is true
and
s[counter] == s[len - 2 - counter] is not true
the rest of the string inside [counter, len-2-counter] is in fact a palindrome?
Seems like cookies are disabled on this browser, please enable them to open this website
Palindrome Index
You are viewing a single comment's thread. Return to all comments →
I have a question, how does this code ensure that when:
s[counter] != s[len - 1 - counter] is true
and
s[counter] == s[len - 2 - counter] is not true
the rest of the string inside [counter, len-2-counter] is in fact a palindrome?