Longest Palindromic Substring Length

PHP Hard 4 views
Back to Questions

Problem Description

Print the length of the longest palindromic substring (expand-around-center).

Input Format

One line string s.

Output Format

One integer length.

Sample Test Case

Input:
babad
Output:
3

Constraints

|s|

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next