Valid Palindrome II
EasyTwo Pointers
Decode it first. Clues, constraints, pattern and plan before any code.Given a string s, return true if it can become a palindrome after deleting at most one character. A palindrome reads the same forwards and backwards.
s = "aba" → true (already a palindrome)
s = "abca" → true (delete "c" or "b")
s = "abc" → falseConstraints
1 <= s.length <= 10^5sconsists of lowercase English letters.