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

Method rightChild

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

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

(parentIndex)

Source from the content-addressed store, hash-verified

79 * @return {*}
80 */
81 rightChild(parentIndex) {
82 return this.heapContainer[this.getRightChildIndex(parentIndex)];
83 }
84
85 /**
86 * @param {number} childIndex

Callers 1

heapifyDownMethod · 0.95

Calls 1

getRightChildIndexMethod · 0.95

Tested by

no test coverage detected