Skip to content

Commit d8de195

Browse files
committed
Valid Palindrome solution
1 parent 9100abf commit d8de195

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

valid-palindrome/acious.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Solution {
88
// - 양쪽 끝의 char를 비교해서 같으면 양쪽 index를 이동시킴.
99
// - 양쪽 끝의 char를 비교해서 같지않으면 return false
1010
// 시간복잡도 : O(n/2)
11-
// 공간복잡도 : O(n)
11+
// 공간복잡도 : O(1)
1212
if (s.isEmpty()) {
1313
return true
1414
}
@@ -40,4 +40,4 @@ class Solution {
4040

4141
return true
4242
}
43-
}
43+
}

0 commit comments

Comments
 (0)