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 c44ec38 commit da6507bCopy full SHA for da6507b
valid-palindrome/daiyongg-kim.py
@@ -1,4 +1,4 @@
1
class Solution:
2
def isPalindrome(self, s: str) -> bool:
3
s = re.sub(r'[^0-9A-Za-z]', '',s).lower()
4
- return s == s[::-1]
+ return s == s[::-1]
0 commit comments