You are viewing a single comment's thread. Return to all comments →
Traversing only till n/2+1 and checking only if s[i] != s[n-1-i] were smart solutions. Helped with TLE. Thanks!
Seems like cookies are disabled on this browser, please enable them to open this website
An unexpected error occurred. Please try reloading the page. If problem persists, please contact support@hackerrank.com
Palindrome Index
You are viewing a single comment's thread. Return to all comments →
Traversing only till n/2+1 and checking only if s[i] != s[n-1-i] were smart solutions. Helped with TLE. Thanks!