datastructpy#

Submodules#

Attributes#

Classes#

Node

A class representing a node in a binary search tree (BST).

Package Contents#

datastructpy.__version__#
class datastructpy.Node(key)[source]#

A class representing a node in a binary search tree (BST).

key#

The value stored in the node.

Type:

int

left#

The left child node (default is None).

Type:

Node, optional

right#

The right child node (default is None).

Type:

Node, optional

key#
left = None#
right = None#