Return True if s can become a palindrome (reads the same both ways) by deleting at most one character. "abca" works (delete c or b); "abc" does not.
Example 1
Input:
valid_palindrome_ii('aba')
Output:
True
Example 2
Input:
valid_palindrome_ii('abca')
Output:
True
0 <= len(s) <= 200000No results yet
Run your code to check it against the examples, or submit to run every test.