Skip to content

Latest commit

 

History

History
63 lines (27 loc) · 856 Bytes

File metadata and controls

63 lines (27 loc) · 856 Bytes

中文文档

Description

Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.

Example 1:

Input: "babad"

Output: "bab"

Note: "aba" is also a valid answer.

Example 2:

Input: "cbbd"

Output: "bb"

Solutions

Python3

Java

...