Abstract
Protected
constructorThe id
parameter is of type BinaryTreeNodeId
and represents the unique identifier
of the binary tree node. It is used to distinguish one node from another in the binary tree.
Optional
val: VThe "val" parameter is an optional parameter of type V. It represents the value that will be stored in the binary tree node. If no value is provided, it will be set to undefined.
Private
_heightPrivate
_idPrivate
_leftPrivate
_parentPrivate
_rightPrivate
_valThe function determines the position of a node in a family tree structure.
a value of type FamilyPosition
.
Generated using TypeDoc
The constructor function initializes a BinaryTreeNode object with an id and an optional value.