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 7e1db34 commit be77a6aCopy full SHA for be77a6a
valid-palindrome/KwonNayeon.py
@@ -5,8 +5,13 @@
5
6
<Solution 1>
7
Time Complexity: O(n)
8
+-
9
10
Space Complexity: O(n)
11
12
+
13
+풀이 방법:
14
15
"""
16
class Solution:
17
def isPalindrome(self, s: str) -> bool:
@@ -17,10 +22,13 @@ def isPalindrome(self, s: str) -> bool:
22
18
23
<Solution 2>
19
24
20
-- 팰린드롬일 경우, 각 문자를 한 번씩 검사
25
+- 팰린드롬일 경우, 각 문자를 한 번씩 검사함
21
26
27
Space Complexity: O(1)
28
- left, right 포인터 외에 추가 공간 사용 없음
29
30
31
32
33
34
0 commit comments