MCPcopy Create free account
hub / github.com/TheAlgorithms/JavaScript /

Class

Data-Structures/Heap/KeyPriorityQueue.js:25–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23const getChildrenPositions = (position) => [2 * position + 1, 2 * position + 2]
24
25class KeyPriorityQueue {
26 // Priority Queue class using Minimum Binary Heap
27 constructor() {
28 this._heap = []

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected