:type s: str :rtype: bool
(self, s)
| 24 | |
| 25 | class Solution(object): |
| 26 | def isPalindrome(self, s): |
| 27 | """ |
| 28 | :type s: str |
| 29 | :rtype: bool |
| 30 | """ |
| 31 | |
| 32 | if not s: |
| 33 | return True |
| 34 | |
| 35 | s = s.lower() |
| 36 | x = ''.join(re.findall(r'[a-z0-9]{1}', s)) |
| 37 | |
| 38 | return x == x[::-1] |
| 39 |
nothing calls this directly
no outgoing calls
no test coverage detected