Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MaxBinaryHeap<T>

Max heap Root element has largest value

Type parameters

  • T

Hierarchy

Implements

  • Iterable<T>

Index

Constructors

constructor

Properties

Protected comparator

comparator: ComparatorFn<T>

Accessors

length

  • get length(): number

Methods

__@iterator

  • __@iterator(): Iterator<T>

clear

  • clear(): void

extract

  • extract(): T

find

  • find(value: T): number

insert

  • insert(v: T): void

Protected isCorrectOrder

  • isCorrectOrder(elA: T, elB: T): boolean

isEmpty

  • isEmpty(): boolean

peek

  • peek(): T

remove

  • remove(v: T): boolean

replace

  • replace(oldValue: T, newValue: T): boolean