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 8901b1d commit f3d0259Copy full SHA for f3d0259
contains-duplicate/mike2ox.ts
@@ -0,0 +1,4 @@
1
+function containsDuplicate(nums: number[]): boolean {
2
+ const set = new Set<number>(nums);
3
+ return set.size !== nums.length;
4
+}
0 commit comments