5. Longest Palindromic Substring
Problem Statement
Input: s = "babad"
Output: "bab"
Explanation: "aba" is also a valid answer.Input: s = "cbbd"
Output: "bb"Intuition
Links
Video Links
Approach 1:
Approach 2:
Approach 3:
Approach 4:
Similar Problems
Last updated