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