Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 420e798

Browse files
authored
Update longestPalindromicSubstring.md
1 parent ad9236b commit 420e798

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

longestPalindromicSubstring.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
## 题目描述
2+
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.
23

4+
Example:
5+
```
6+
Input: "babad"
7+
8+
Output: "bab"
9+
```
10+
> Note: "aba" is also a valid answer.
11+
12+
13+
Example:
14+
```
15+
Input: "cbbd"
16+
17+
Output: "bb"
18+
```
319
## 思路
420

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

0 commit comments

Comments
 (0)