28. Longest palindromic substring

Write a function that, given an input string, locates and returns the longest sequence in the string that is a palindrome. If multiple palindromes of the same length exist, the first one should be returned.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset