Skip to content

Commit 8b2a045

Browse files
authored
contains duplicate solution
1 parent 4310183 commit 8b2a045

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

contains-duplicate/yhkee0404.kt

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

Comments
 (0)