Tap here to switch tabs
Problem
Submissions

Problem: Longest Almost-Palindromic Substring

Try to solve the Longest Almost-Palindromic Substring problem.

Statement

Given a string s, find the length of the longest almost palindromic substring in s.

A string is defined as almost palindromic if it can be transformed into a palindrome by deleting at most 11 character from it.

A substring is a contiguous non empty sequence of characters within a string.

Constraints:

  • 2≤2 \leq s.length ≤2500\leq 2500

  • s consists of only lowercase English letters.

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Longest Almost-Palindromic Substring

Try to solve the Longest Almost-Palindromic Substring problem.

Statement

Given a string s, find the length of the longest almost palindromic substring in s.

A string is defined as almost palindromic if it can be transformed into a palindrome by deleting at most 11 character from it.

A substring is a contiguous non empty sequence of characters within a string.

Constraints:

  • 2≤2 \leq s.length ≤2500\leq 2500

  • s consists of only lowercase English letters.