The constructor function initializes a Red-Black Tree node with a key, value, count, and color.
The key parameter represents the key of the node in the Red-Black Tree. It is used to identify and locate the node within the tree.
Optional
value: VThe value
parameter is an optional parameter that represents the value
associated with the key in the Red-Black Tree node. It is not required and can be omitted when
creating a new node.
Optional
count: number = 1The count
parameter represents the number of occurrences of a particular key
in the Red-Black Tree. It is an optional parameter with a default value of 1.
Optional
color: RBTNColor = 'BLACK'The color
parameter is used to specify the color of the node
in a Red-Black Tree. It is optional and has a default value of 'BLACK'
.
Represents a node in a binary tree.
Template: BinaryTreeNode<K,
V> - The type of the family relationship in the binary tree.