1class 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]
WPM •0 •0
ACC •0 •0
TIME •0