码迷,mamicode.com
首页 > 其他好文 > 详细

[LeetCode] Valid Palindrome II 验证回文字符串之二

时间:2017-10-02 09:31:27      阅读:163      评论:0      收藏:0      [点我收藏+]

标签:code   exp   character   字符串   most   out   string   tput   lan   

 

Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome.

Example 1:

Input: "aba"
Output: True

Example 2:

Input: "abca"
Output: True
Explanation: You could delete the character ‘c‘.

Note:

    1. The string will only contain lowercase characters a-z. The maximum length of the string is 50000.

 

s

 

[LeetCode] Valid Palindrome II 验证回文字符串之二

标签:code   exp   character   字符串   most   out   string   tput   lan   

原文地址:http://www.cnblogs.com/grandyang/p/7618468.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!