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

Method __init__

data_structures/heap/randomized_heap.py:18–21  ·  view source on GitHub ↗
(self, value: T)

Source from the content-addressed store, hash-verified

16 """
17
18 def __init__(self, value: T) -> None:
19 self._value: T = value
20 self.left: RandomizedHeapNode[T] | None = None
21 self.right: RandomizedHeapNode[T] | None = None
22
23 @property
24 def value(self) -> T:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected