Skip to content

Commit a0e762a

Browse files
committed
containsDuplicate 문제 풀이 추가
1 parent 0e5ffe5 commit a0e762a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

contains-duplicate/junzero741.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
function containsDuplicate(nums: number[]): boolean {
2+
const uniqueNums = new Set<number>(nums);
3+
return uniqueNums.size < nums.length
4+
};

0 commit comments

Comments
 (0)