HTMLify
LeetCode - Valid Palindrome - Python
Views: 442 | Author: abh
1 2 3 4 | class Solution: def isPalindrome(self, s: str) -> bool: fls = "".join([c for c in s.lower() if c in "pyfgcrlaoeuidhtnsqjkxbmwvz1234567890"]) return fls == fls[::-1] |