Longest Palindromic Substring Length

Python Hard 2 views
Back to Questions

Problem Description

A string s is provided (no spaces). Compute length of longest palindromic substring. Use linear-time method.

Input Format

One line s.

Output Format

One integer maxLen.

Sample Test Case

Input:
babad
Output:
3

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next