Class AVLTreeCounterNode<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 a BinaryTreeNode object with a key, value, and count.

    Type Parameters

    • K = any
    • V = any

    Parameters

    • key: K

      The key parameter is of type K and represents the unique identifier of the binary tree node.

    • Optionalvalue: V

      The value parameter is an optional parameter of type V. It represents the value of the binary tree node. If no value is provided, it will be undefined.

    • Optionalcount: number = 1

      The count parameter is a number that represents the number of times a particular value occurs in a binary tree node. It has a default value of 1, which means that if no value is provided for the count parameter when creating a new instance of the BinaryTreeNode class.

    Returns AVLTreeCounterNode<K, V>