Valid Palindrome II
easyCheck if string can be a palindrome by removing at most one character
Valid Palindrome II
Key Insight
On mismatch try skipping left or right — if either substring is palindrome, return true.
Step 1Setup
a == a ✓
left
a
0b
1c
2right
a
3→converge←
Check if "abca" can be palindrome with at most one deletion. left=0, right=3.
1 / 5