We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fc7ec8 commit 8f18862Copy full SHA for 8f18862
contains-duplicate/casentino.ts
@@ -0,0 +1,4 @@
1
+function containsDuplicate(nums: number[]): boolean {
2
+ const duplicateSet = new Set(nums);
3
+ return duplicateSet.size !== nums.length;
4
+}
0 commit comments