Class AbstractBinaryTreeNode<T, 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: T

      The "val" parameter is an optional parameter of type T. 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<T, NEIGHBOR>

Properties

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

Accessors

Generated using TypeDoc