Leetcode——验证回文字符串——python3

# 验证回文字符串 # 给定一个字符串,验证它是不是回文串,只考虑字母和数字字符,能够忽略字母的大小写。 # 本题中,咱们将空字符串定义为有效的回文串。 class Solution(object): def is_palindrome(self, s): """ :type s: str :rtype: bool ""
相关文章
相关标签/搜索