Valid Palindrome After Deleting at Most One Character

Problem

Given a string s, determine whether it can become a palindrome after deleting at most one character.

Input

  • One line containing a lowercase English string s.

Output

  • Print ...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: