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

Method __init__

data_structures/binary_tree/wavelet_tree.py:17–22  ·  view source on GitHub ↗
(self, length: int)

Source from the content-addressed store, hash-verified

15
16class Node:
17 def __init__(self, length: int) -> None:
18 self.minn: int = -1
19 self.maxx: int = -1
20 self.map_left: list[int] = [-1] * length
21 self.left: Node | None = None
22 self.right: Node | None = None
23
24 def __repr__(self) -> str:
25 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected