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

Method leftChild

src/data-structures/heap/Heap.js:73–75  ·  view source on GitHub ↗

* @param {number} parentIndex * @return {*}

(parentIndex)

Source from the content-addressed store, hash-verified

71 * @return {*}
72 */
73 leftChild(parentIndex) {
74 return this.heapContainer[this.getLeftChildIndex(parentIndex)];
75 }
76
77 /**
78 * @param {number} parentIndex

Callers 1

heapifyDownMethod · 0.95

Calls 1

getLeftChildIndexMethod · 0.95

Tested by

no test coverage detected