Valid Palindrome II

Try to solve the Valid Palindrome II problem.


Write a function that takes a string as input and checks whether it can be a valid palindrome by removing at most one character from it.


  • 11\leqstring.length \leq10310^3

  • The string only consists of English letters.


Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy