The function returns the value of the _left
property.
The _left
property of the current object is being returned.
The function sets the left child of a node and updates the parent reference of the child.
The parameter v
is of type OptNode<NODE>
. It can either be an
instance of the NODE
class or undefined
.
The function returns the right node of a binary tree or undefined if there is no right node.
The method is returning the value of the _right
property, which is of type NODE
or
undefined
.
The function sets the right child of a node and updates the parent reference of the child.
The parameter v
is of type OptNode<NODE>
. It can either be a
NODE
object or undefined
.
Represents a node in a binary tree.