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

Method __init__

binary_search_trees/tree_node.py:6–9  ·  view source on GitHub ↗
(self, data: int)

Source from the content-addressed store, hash-verified

4# Node class for binary tree
5class Node:
6 def __init__(self, data: int) -> None:
7 self.data: int = data
8 self.left: Optional[Node] = None
9 self.right: Optional[Node] = None

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected