Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ __init__
Method
__init__
data_structures/heap/max_heap.py:19–21 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
17
""
"
18
19
def
__init__(self):
20
self.__heap = [0]
21
self.__size = 0
22
23
def
__swap_up(self, i: int) -> None:
24
""
"Swap the element up"
""
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected