Valid Palindrome II
Given a non-empty strings
, you may deleteat mostone character. Judge whether you can make it a palindrome.
Example
Example 1:
Example 2:
Note
在不一致的情况下,删左边或者删右边,继续判断
Code
Last updated
Given a non-empty strings
, you may deleteat mostone character. Judge whether you can make it a palindrome.
Example 1:
Example 2:
在不一致的情况下,删左边或者删右边,继续判断
Last updated