Skip to content

Commit 8377a45

Browse files
committed
update: add comments
1 parent cd99fcb commit 8377a45

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

contains-duplicate/Tessa1217.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33

44
class Solution {
55

6+
/** 217. 중복된 수
7+
* 정수 배열 nums가 주어졌을 때 배열 요소 중 한 개 이상이 두 번 이상 중복되어
8+
* 나타는 경우 true를, 모든 배열의 요소가 고유한 경우 false를 반환
9+
*/
610
public boolean containsDuplicate(int[] nums) {
711

812
Set<Integer> distincts = new HashSet<>();
@@ -14,3 +18,4 @@ public boolean containsDuplicate(int[] nums) {
1418
return distincts.size() != nums.length;
1519
}
1620
}
21+

0 commit comments

Comments
 (0)