Medium
Find the longest palindromic substring.
Given a string, return the longest substring that is a palindrome.
Examples
Input: s = "babad"
Output: "bab" or "aba"
Constraints
- 1 <= s.length
Coding Challenge
Find the longest palindromic substring.
Given a string, return the longest substring that is a palindrome.
Input: s = "babad"
Output: "bab" or "aba"
Preparing your coding workspace...