forked from azl397985856/leetcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update longestPalindromicSubstring.md
- Loading branch information
1 parent
ad9236b
commit 420e798
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,30 @@ | ||
## 题目描述 | ||
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. | ||
|
||
Example: | ||
``` | ||
Input: "babad" | ||
Output: "bab" | ||
``` | ||
> Note: "aba" is also a valid answer. | ||
|
||
Example: | ||
``` | ||
Input: "cbbd" | ||
Output: "bb" | ||
``` | ||
## 思路 | ||
|
||
## 代码 | ||
```js | ||
/** | ||
* @param {string} s | ||
* @return {string} | ||
*/ | ||
var longestPalindrome = function(s) { | ||
|
||
}; | ||
``` |