Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
heapifyDown
Method · 0.95
Calls
1
getLeftChildIndex
Method · 0.95
Tested by
no test coverage detected