MCPcopy
hub / github.com/HuberTRoy/leetCode / get

Method get

Design/LRUCache.py:65–70  ·  view source on GitHub ↗

:type key: int :rtype: int

(self, key)

Source from the content-addressed store, hash-verified

63 self.capacity = capacity
64
65 def get(self, key):
66 """
67 :type key: int
68 :rtype: int
69 """
70 return self._get(key)
71
72 def _get(self, key):
73 # if inexistent then return -1

Callers 15

coinChangeMethod · 0.80
findWordsMethod · 0.80
constructFunction · 0.80
wordSubsetsMethod · 0.80
threeSumMethod · 0.80
numSubarraysWithSumMethod · 0.80
findRestaurantMethod · 0.80
subarraySumMethod · 0.80
totalFruitMethod · 0.80
insertMethod · 0.80
removeMethod · 0.80
_getMethod · 0.80

Calls 1

_getMethod · 0.95

Tested by

no test coverage detected