MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / get_value

Method get_value

data_structures/heap/min_heap.py:51–52  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

49 return idx * 2 + 2
50
51 def get_value(self, key):
52 return self.heap_dict[key]
53
54 def build_heap(self, array):
55 last_idx = len(array) - 1

Callers 1

__getitem__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected