题目
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring.
翻译
给定一个字符串S,找出最长的回文子串。你可以假定S的最大长度为1000,且存在唯一的一个最长回文子串。
分析
Medium
我的代码
class Solution {
public:
string longestPalindrome(string s) {
}
};