LeetCode 솔루션 분류
[6/16] 5. Longest Palindromic Substring
본문
Medium
182971084Add to ListShareGiven a string s
, return the longest palindromic substring in s
.
Example 1:
Input: s = "babad" Output: "bab" Explanation: "aba" is also a valid answer.
Example 2:
Input: s = "cbbd" Output: "bb"
Constraints:
1 <= s.length <= 1000
s
consist of only digits and English letters.
관련자료
-
링크
댓글 1
학부유학생님의 댓글
- 익명
- 작성일
Runtime: 1730 ms, faster than 39.63% of Python3 online submissions for Longest Palindromic Substring.
Memory Usage: 13.9 MB, less than 60.62% of Python3 online submissions for Longest Palindromic Substring.
Memory Usage: 13.9 MB, less than 60.62% of Python3 online submissions for Longest Palindromic Substring.