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 9a149b9 commit 5f1eefeCopy full SHA for 5f1eefe
contains-duplicate/y00eunji.js
@@ -0,0 +1,9 @@
1
+/**
2
+ * @param {number[]} nums
3
+ * @return {boolean}
4
+ */
5
+var containsDuplicate = function(nums) {
6
+ // set에 넣어 중복을 줄이고 길이를 비교한다.
7
+
8
+ return new Set(nums).size !== nums.length;
9
+};
0 commit comments