美文网首页
LeetCode[125]

LeetCode[125]

作者: FENGERMA | 来源:发表于2017-07-31 22:56 被阅读0次

125. Valid Palindrome

Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.

For example,

"A man, a plan, a canal: Panama"is a palindrome.

"race a car"isnota palindrome.

Note:

Have you consider that the string might be empty? This is a good question to ask during an interview.

For the purpose of this problem, we define empty string as valid palindrome.

相关文章

网友评论

      本文标题:LeetCode[125]

      本文链接:https://www.haomeiwen.com/subject/ttddlxtx.html