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

Method __repr__

data_structures/heap/heap.py:52–53  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

50 self.heap_size: int = 0
51
52 def __repr__(self) -> str:
53 return str(self.h)
54
55 def parent_index(self, child_idx: int) -> int | None:
56 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected