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 4310183 commit 8b2a045Copy full SHA for 8b2a045
contains-duplicate/yhkee0404.kt
@@ -0,0 +1,6 @@
1
+class Solution {
2
+ fun containsDuplicate(nums: IntArray): Boolean {
3
+ return nums.toSet()
4
+ .size != nums.size
5
+ }
6
+}
0 commit comments