We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3e7172 commit cac4c99Copy full SHA for cac4c99
valid-palindrome/hodaessi.py
@@ -0,0 +1,7 @@
1
+class Solution:
2
+ def isPalindrome(self, s: str) -> bool:
3
+ s = s.lower()
4
+
5
+ s = ''.join(filter(str.isalnum, s))
6
7
+ return s == s[::-1]
0 commit comments