MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getRightChildIndex

Method getRightChildIndex

common/src/util/min-heap.ts:15–17  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

13 }
14
15 private getRightChildIndex(index: number): number {
16 return 2 * index + 2
17 }
18
19 private swap(index1: number, index2: number): void {
20 const temp = this.heap[index1]

Callers 1

siftDownMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected