MCPcopy
hub / github.com/kunal-kushwaha/DSA-Bootcamp-Java / parent

Method parent

lectures/24-heaps/code/heaps-1/Heap.java:17–19  ·  view source on GitHub ↗
(int index)

Source from the content-addressed store, hash-verified

15 }
16
17 private int parent(int index) {
18 return (index - 1) / 2;
19 }
20
21 private int left(int index) {
22 return index * 2 + 1;

Callers 1

upheapMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected