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

Method parent

lectures/27-huffman-coding/code/Heap.java:76–78  ·  view source on GitHub ↗
(int index)

Source from the content-addressed store, hash-verified

74 }
75
76 private int parent(int index){
77 return (index - 1) / 2;
78 }
79
80 private int left(int index){
81 return index * 2 + 1;

Callers 1

upheapMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected