1
class Solution:
2
def isPalindrome(self, s: str) -> bool:
3
cleaned = ""
4
for c in s:
5
if c.isalnum():
6
cleaned += c.lower()
7
return cleaned == cleaned[::-1]

0

WPM •0 •0

100%

ACC •0 •0

0s

TIME •0