@LeavyRoll said in Longest Palindromic Substring - C++:

return

Consider only one character

Consider a symmetric string

3, consider the string is 'sooos' and 'soooos', find the same character 'ooo' or 'oooo' in the middle.