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 378debb commit 31732aaCopy full SHA for 31732aa
contains-duplicate/iam-edwin.kt
@@ -0,0 +1,5 @@
1
+class Solution {
2
+ fun containsDuplicate(nums: IntArray): Boolean {
3
+ return nums.size != nums.distinct().size
4
+ }
5
+}
0 commit comments