Skip to content

Commit 8415ff6

Browse files
committed
Solution Contains Duplicate
- 문제: https://leetcode.com/problems/contains-duplicate/
1 parent f291ae8 commit 8415ff6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

contains-duplicate/doitduri.swift

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

Comments
 (0)