Palindrome Index

  • + 0 comments

    Traversing only till n/2+1 and checking only if s[i] != s[n-1-i] were smart solutions. Helped with TLE. Thanks!