terminal
Elevo
/
ESC
Login
Initiate Registration
code
Topics
corporate_fare
Companies
history
History
arrow_back
Back to Challenges
#5
Longest Palindromic Substring
Medium
Acceptance 0%
Editorial
description
Problem Description
Given a string `s`, return the longest palindromic substring in `s`.
checklist
Constraints
1 <= s.length <= 1000
s consist of only digits and English letters.
science
Examples
Case #1
In:
s = "babad"
Out:
"bab"
Case #2
In:
s = "cbbd"
Out:
"bb"
Mastery Tags
Dynamic Programming
Strings
Hiring Companies
Adobe
Amazon
Microsoft
code
Integrated IDE
Python 3
expand_more
C
C++ 17
Java
JavaScript
Python 3
C
C++ 17
Java
JavaScript
Python 3
refresh
class Solution: def longestPalindrome(self, s: str) -> str: # Write your solution here pass
Login to Compile
Processing
terminal
Debug Output
home
Home
extension
Practice
robot_2
login
Sign In
account_circle
Menu
code_blocks
Coding
psychology
Aptitude
Navigation
close
Login
Registration