Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codedecks-in/LeetCode-Solutions
/ containsDuplicate
Method
containsDuplicate
Python/contains-duplicate.py:7–13 ·
view source on GitHub ↗
(self, nums: List[int])
Source
from the content-addressed store, hash-verified
5
6
class
Solution:
7
def
containsDuplicate(self, nums: List[int]) -> bool:
8
count = {}
9
for
n in nums :
10
if
count.get(n) != None :
11
return
True
12
count[n] = 1
13
return
False
Callers
nothing calls this directly
Calls
1
get
Method · 0.45
Tested by
no test coverage detected