Closed godkingjay closed 1 year ago
Medium
Given a string s, return the longest palindromic substring in s.
s
Input: s = "babad" Output: "bab" Explanation:
s = "babad"
"bab"
"aba" is also a valid answer.
Input: s = "cbbd" Output: "bb"
s = "cbbd"
"bb"
1 <= s.length <= 1000
https://leetcode.com/problems/longest-palindromic-substring/
Hey @godkingjay . Kindly assign it to me. Id like to work on this issue
Hey @godkingjay . Done with the problem. Kindly check out my PR. Thanks !
Difficulty
Medium
Problem Description
Given a string
s
, return the longest palindromic substring ins
.Example 1:
Input:
s = "babad"
Output:"bab"
Explanation:Example 2:
Input:
s = "cbbd"
Output:"bb"
Constraints:
1 <= s.length <= 1000
s
consist of only digits and English letters.Link
https://leetcode.com/problems/longest-palindromic-substring/