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

Class

Data-Structures/Heap/MinPriorityQueue.js:13–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11// Functions: insert, delete, peek, isEmpty, print, heapSort, sink
12
13class MinPriorityQueue {
14 // calls the constructor and initializes the capacity
15 constructor(c) {
16 this.heap = []

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected