Skip to content

Commit 45b000c

Browse files
authored
docs: update comments for clarity
1 parent 30d90b0 commit 45b000c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

โ€Žcontains-duplicate/river20s.pyโ€Ž

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ def containsDuplicate(self, nums):
2020
2121
* Python์—์„œ set()์€ ๋ฐฐ์—ด์˜ ๊ฐ ์›์†Œ๋ฅผ ํ•ด์‹œ ํ…Œ์ด๋ธ”์— ์ €์žฅํ•œ๋‹ค.
2222
23-
๋ฐฐ์—ด์— ์ค‘๋ณต๋œ ์š”์†Œ๊ฐ€ ์ „ํ˜€ ์—†๋‹ค๋ฉด ๋ชจ๋“  ์š”์†Œ(n๊ฐœ)๋ฅผ set์— ์ €์žฅํ•˜๊ฒŒ ๋˜๋ฏ€๋กœ
23+
์ €์žฅ๋˜๋Š” ์š”์†Œ์˜ ๊ฐœ์ˆ˜๊ฐ€ n์— ๋น„๋ก€ํ•˜์—ฌ ์„ ํ˜•์ ์œผ๋กœ ์ฆ๊ฐ€ํ•˜๋ฏ€๋กœ ๊ณต๊ฐ„ ๋ณต์žก๋„๋Š” O(n)์ด ๋œ๋‹ค.
2424
25-
๊ณต๊ฐ„ ๋ณต์žก๋„๋Š” O(n)์ด ๋œ๋‹ค.
2625
2726
"""
2827

0 commit comments

Comments
ย (0)