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 4d43cb6 commit 79b4169Copy full SHA for 79b4169
1 file changed
contains-duplicate/nowrobin.js
@@ -0,0 +1,9 @@
1
+/**
2
+ * @param {number[]} nums
3
+ * @return {boolean}
4
+ */
5
+var containsDuplicate = function(nums) {
6
+ return new Set(nums).size != nums.length;
7
+};
8
+
9
+// 40ms 80.33MB
0 commit comments