LeeCode(5. Longest Palindromic Substring)

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.
Input: "cbbd"

Output: "bb"

暂时还没写出来

posted @ 2018-01-07 18:01  栖息之鹰  阅读(89)  评论(0编辑  收藏  举报