Longest Palindromic Substring
Explore methods to identify the longest palindromic substring within a given string. Understand pointer techniques for both odd and even length palindromes, and implement a solution that handles all cases with optimal time and space complexity.
Statement
Given a string of characters, find and return the longest
Examples
Example 1
Sample input
"bccd"
Expected output
"cc"
Example 2
Sample input
xaabacxcabaaxcabaax
Expected output
xaabacxcabaax
Try it yourself
Solution
There can be multiple palindromes in the input ...