longestPalindromicSubstring.md 392 字节
Newer Older
A
arida 已提交
1
## 题目描述
A
arida 已提交
2
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.
A
arida 已提交
3

A
arida 已提交
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Example:
```
Input: "babad"

Output: "bab"
```
> Note: "aba" is also a valid answer.


Example:
```
Input: "cbbd"

Output: "bb"
 ```
A
arida 已提交
19 20 21
## 思路

## 代码
A
arida 已提交
22 23 24 25 26 27 28 29 30
```js
/**
 * @param {string} s
 * @return {string}
 */
var longestPalindrome = function(s) {
    
};
```