Skip to content

Commit 270473d

Browse files
pmjuupmjuu
pmjuu
authored and
pmjuu
committed
feat: solve contains duplicate
1 parent 8901b1d commit 270473d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contains-duplicate/pmjuu.py

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

0 commit comments

Comments
 (0)