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

Method __init__

data_structures/binary_tree/treap.py:12–16  ·  view source on GitHub ↗
(self, value: int | None = None)

Source from the content-addressed store, hash-verified

10 """
11
12 def __init__(self, value: int | None = None):
13 self.value = value
14 self.prior = random()
15 self.left: Node | None = None
16 self.right: Node | None = None
17
18 def __repr__(self) -> str:
19 from pprint import pformat

Callers

nothing calls this directly

Calls 1

randomFunction · 0.85

Tested by

no test coverage detected