Valid Palindrome II

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

Constraints

  • 1 <= s.length <= 100000
  • s consists of lowercase English letters.
Saving… · 2 lines
class Solution:
def validPalindromeII(self, s: str) -> bool:
Console

Click Run to execute sample tests.