Pairing heap.

The root node is the minimum element according to comparator.

Final

Type Parameters

Hierarchy

  • default

Implements

Constructors

  • Type Parameters

    • T extends Node<T, T>

    Parameters

    • compare: ((a: T, b: T) => boolean)

      Returns true iff a < b.

        • (a: T, b: T): boolean
        • Parameters

          • a: T
          • b: T

          Returns boolean

    Returns default<T>

Properties

compare: ((a: T, b: T) => boolean)

Type declaration

    • (a: T, b: T): boolean
    • Returns true iff a < b.

      Parameters

      • a: T
      • b: T

      Returns boolean

Methods

Generated using TypeDoc