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 53ce7c7 commit a4ad8e9Copy full SHA for a4ad8e9
contains-duplicate/hyunjung-choi.kt
@@ -0,0 +1,5 @@
1
+class Solution {
2
+ fun containsDuplicate(nums: IntArray): Boolean {
3
+ return nums.size != nums.toSet().size
4
+ }
5
+}
0 commit comments