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 ad4791d commit 46211b9Copy full SHA for 46211b9
valid-palindrome/HodaeSsi.py
@@ -0,0 +1,8 @@
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]
8
0 commit comments