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

Method __str__

data_structures/binary_tree/treap.py:28–32  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

26 )
27
28 def __str__(self) -> str:
29 value = str(self.value) + " "
30 left = str(self.left or "")
31 right = str(self.right or "")
32 return value + left + right
33
34
35def split(root: Node | None, value: int) -> tuple[Node | None, Node | None]:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected