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 9dfb3e9 commit c44ec38Copy full SHA for c44ec38
valid-palindrome/daiyongg-kim.py
@@ -1,5 +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]
5
-
+ return s == s[::-1]
0 commit comments