Skip to content

Commit 3a84f95

Browse files
committed
week01_1_2_3_solution
1 parent 08cdcb8 commit 3a84f95

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

contains-duplicate/YOOHYOJEONG.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ def containsDuplicate(self, nums):
66
return True
77
else:
88
return False
9-

top-k-frequent-elements/YOOHYOJEONG.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ def topKFrequent(self, nums, k):
1111

1212
sorted_cnt = sorted(cnt.items(), key=lambda x: x[1], reverse=True)
1313

14-
return [item[0] for item in sorted_cnt[:k]]
14+
return [item[0] for item in sorted_cnt[:k]]
15+

two-sum/YOOHYOJEONG.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ def twoSum(self, nums, target):
2121

2222
seen[num] = i
2323

24-
# index를 기억하도록 하면 반복문 한번 O(n), 딕셔너리 조회 평균 O(1)로 전체 O(n)이 됨
24+
# index를 기억하도록 하면 반복문 한번 O(n), 딕셔너리 조회 평균 O(1)로 전체 O(n)이 됨

0 commit comments

Comments
 (0)