Skip to content

Commit 5bf7184

Browse files
authored
Update ContainsDuplicate.java
1 parent 50815a3 commit 5bf7184

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

easy/ContainsDuplicate.java

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

0 commit comments

Comments
 (0)