Learn practical skills, build real-world projects, and advance your career
Updated 2 years ago
5. longest-palindromic-substring
Use the "Run" button to execute the code.
!pip install jovian --upgrade --quiet
import jovian
Given a string s, return the longest palindromic substring in s.
Constraints:
1 <= s.length <= 1000
s consist of only digits and English letters.
Plain English
Find the longest instance where a substring identical in the given and reverse order.