File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 1+ # ์๊ฐ ๋ณต์ก๋: O(log n)
2+ # - 2๋ก ๊ณ์ ๋๋๊ณ , ์ด๋ 2์ง์ ์๋ฆฟ์ ๋งํผ ๋ฐ๋ณตํ๊ธฐ ๋๋ฌธ
3+ # ๊ณต๊ฐ ๋ณต์ก๋: O(1)
4+ # - ๋ณ์ ๋ช ๊ฐ๋ง ์ฌ์ฉ
5+
16class Solution :
27 # ์ด๋ค ์๋ฅผ 2์ง์๋ก ๋ณํํ๋ ๊ณผ์ ์ 2๋ก ๋๋ ํ, ๊ทธ ๋๋จธ์ง(1 ๋๋ 0)์ ๊ฐ์ฅ ๋์ ์๋ฆฌ ์๋ถํฐ ์์ฐจ๋ก ๋์ดํ๊ณ
38 # ๋ชซ์ ๊ทธ ๋ค์ ํ์ฐจ์ ํผ์ ์๋ก ์ฌ์ฉํ๋ฉด ๋๋ค.
Original file line number Diff line number Diff line change 1+ # ๋ฌธ์์ด ๊ธธ์ด๊ฐ n์ผ ๋
2+ # ์๊ฐ ๋ณต์ก๋: O(n)
3+ # - alphanumeric ํ์ธํ ๋ ์ ์ฒด ๋ฌธ์๋ฅผ ์ํํ๋ ๊ฒ ์ต๋
4+ # ๊ณต๊ฐ ๋ณต์ก๋: O(n)
5+ # - ์ต์
์ ๊ฒฝ์ฐ๋ ์
๋ ฅ ์ ์ฒด๊ฐ alphanumeric์ผ ๋(ํน์ ๋ฌธ์ ์์ ๋)
6+
17class Solution :
28 # Alphanumeric ์คํธ๋ง ์ด์ธ์ ๋ฌธ์์ด์ ๋จผ์ ์ ์ธ ์ํจ ์ดํ lowercase๋ก ๋ณ๊ฒฝํ ๋ค์, ์ ๋์์๋ถํฐ ๋ฌธ์์ด์ ๋น๊ตํ๋ค.
39 def isPalindrome (self , s : str ) -> bool :
You canโt perform that action at this time.
0 commit comments