Redirecting to
NADOS

Longest Palindromic Substring

Print the length of the longest palindromic substring
Input Format
Given a string S
Output Format
Print the length of the longest palindromic substring (Integer value)
Question Video
Constraints
|S| <= 10^5
Sample Input
5
ababa
Sample Output
5


  • Asked in Companies
  • Related Topics






Video Solution

Code Solution

Run
 
Run
Id Name