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 b59cf2e commit 8076db0Copy full SHA for 8076db0
valid-palindrome/printjin-gmailcom.py
@@ -1,4 +1,4 @@
1
class Solution:
2
def isPalindrome(self, s):
3
cleaned = [c.lower() for c in s if c.isalnum()]
4
- return cleaned == cleaned[::-1]
+ return cleaned == cleaned[::-1]
0 commit comments