Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ __init__
Method
__init__
data_structures/heap/heap.py:48–50 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
46
""
"
47
48
def
__init__(self) -> None:
49
self.h: list[T] = []
50
self.heap_size: int = 0
51
52
def
__repr__(self) -> str:
53
return
str(self.h)
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected