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 47d1e92 commit 0dbfa7eCopy full SHA for 0dbfa7e
valid-palindrome/sejineer.py
@@ -0,0 +1,8 @@
1
+"""
2
+시간 복잡도: O(N)
3
+공간 복잡도: O(N)
4
5
+class Solution:
6
+ def isPalindrome(self, s: str) -> bool:
7
+ filterd_s = [ch for ch in s.lower() if ch.isalnum()]
8
+ return filterd_s == filterd_s[::-1]
0 commit comments