Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ __len__
Method
__len__
data_structures/heap/max_heap.py:66–68 ·
view source on GitHub ↗
Length of the array
(self)
Source
from the content-addressed store, hash-verified
64
return
self.__heap[1:]
65
66
def
__len__(self):
67
""
"Length of the array"
""
68
return
self.__size
69
70
71
if
__name__ ==
"__main__"
:
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected