Class AbstractBinaryTreeNode<V, NEIGHBOR>Abstract

Type Parameters

Hierarchy

Implements

Constructors

  • The constructor function initializes a BinaryTreeNode object with an id and an optional value.

    Type Parameters

    Parameters

    • id: number

      The 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: V

      The "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.

    Returns AbstractBinaryTreeNode<V, NEIGHBOR>

Properties

_height: number = 0
_id: number
_left: undefined | null | NEIGHBOR
_parent: undefined | null | NEIGHBOR
_right: undefined | null | NEIGHBOR
_val: undefined | V

Accessors

Generated using TypeDoc