Skip to content

Commit a2f5247

Browse files
author
jinbeom
committed
Contains Duplicate Solution
1 parent ea9d6c0 commit a2f5247

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

contains-duplicate/kayden.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class Solution:
2+
def containsDuplicate(self, nums: List[int]) -> bool:
3+
unique_nums = set(nums)
4+
return len(unique_nums) != len(nums)

0 commit comments

Comments
 (0)