Class BinaryTreeNode<K, V>

Represents a node in a binary tree.

V> - The type of the family relationship in the binary tree.

Type Parameters

  • K = any
  • V = any

    The type of data stored in the node.

Hierarchy (view full)

Constructors

Constructors

  • The constructor function initializes an object with a key and an optional value in TypeScript.

    Type Parameters

    • K = any
    • V = any

    Parameters

    • key: K

      The key parameter in the constructor function is used to store the key value for the key-value pair.

    • Optionalvalue: V

      The value parameter in the constructor is optional, meaning it does not have to be provided when creating an instance of the class. If a value is not provided, it will default to undefined.

    Returns BinaryTreeNode<K, V>