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 f291ae8 commit 8415ff6Copy full SHA for 8415ff6
contains-duplicate/doitduri.swift
@@ -0,0 +1,6 @@
1
+class Solution {
2
+ func containsDuplicate(_ nums: [Int]) -> Bool {
3
+ let numbericSet = Set(nums)
4
+ return numbericSet.count < nums.count
5
+ }
6
+}
0 commit comments