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 53ce7c7 commit 202c175Copy full SHA for 202c175
contains-duplicate/hyer0705.ts
@@ -0,0 +1,3 @@
1
+function containsDuplicate(nums: number[]): boolean {
2
+ return new Set<number>(nums).size !== nums.length;
3
+}
0 commit comments