MCPcopy Index your code
hub / github.com/qiyuangong/leetcode / find

Function find

python/706_Design_HashMap.py:57–64  ·  view source on GitHub ↗
(bucket, key)

Source from the content-addressed store, hash-verified

55
56
57def find(bucket, key):
58 # find prev node of this key
59 node = bucket
60 prev = None
61 while node is not None and node.key != key:
62 prev = node
63 node = node.next
64 return prev
65
66
67# Basic node in hash map

Callers 3

putMethod · 0.85
getMethod · 0.85
removeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected