The id
parameter is of type BinaryTreeNodeId
and represents the unique identifier
of the binary tree node.
Optional
val: VThe val
parameter is an optional parameter of type V
. It represents the value of the binary
tree node. If no value is provided, it will be undefined
.
Optional
count: number = 1The count
parameter is a number that represents the number of times a particular value
occurs in a binary tree node. It has a default value of 1, which means that if no value is provided for the count
parameter when creating a new instance of the BinaryTreeNode
class,
Private
_countThe 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, value, and count.