Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PriorityQueue<T>

Type parameters

  • T

Hierarchy

  • PriorityQueue

Index

Constructors

Methods

Constructors

constructor

  • new PriorityQueue<T>(compare: (a: T, b: T) => number): PriorityQueue<T>
  • Type parameters

    • T

    Parameters

    • compare: (a: T, b: T) => number
        • (a: T, b: T): number
        • Parameters

          • a: T
          • b: T

          Returns number

    Returns PriorityQueue<T>

Methods

pop

  • pop(): void
  • Returns void

push

  • push(item: T): void
  • Parameters

    • item: T

    Returns void

Generated using TypeDoc