Skip to content

Commit 79b4169

Browse files
committed
contains-duplicate
1 parent 4d43cb6 commit 79b4169

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

contains-duplicate/nowrobin.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)