MCPcopy Index your code
hub / github.com/trekhleb/javascript-algorithms / pairIsInCorrectOrder

Method pairIsInCorrectOrder

src/data-structures/heap/Heap.js:280–285  ·  view source on GitHub ↗
(firstElement, secondElement)

Source from the content-addressed store, hash-verified

278 */
279 /* istanbul ignore next */
280 pairIsInCorrectOrder(firstElement, secondElement) {
281 throw new Error(`
282 You have to implement heap pair comparison method
283 for ${firstElement} and ${secondElement} values.
284 `);
285 }
286}

Callers 3

removeMethod · 0.95
heapifyUpMethod · 0.95
heapifyDownMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected