LeetCode 5 Longest Palindromic Substring(C,C++,Python,Java)
Problem:GivenastringS,findthelongestpalindromicsubstringinS.YoumayassumethatthemaximumlengthofSis1000,andthereexistsoneuniquelongestpalindromicsubstring.Solution:以每一个字符为中间查找回文串,然后记录下最大的回文串,时间复杂度O(n^2)