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

Method insert

lectures/27-huffman-coding/code/Heap.java:11–14  ·  view source on GitHub ↗
(T value)

Source from the content-addressed store, hash-verified

9 }
10
11 public void insert(T value){
12 list.add(value);
13 upheap(list.size() - 1);
14 }
15 public int size(){
16 return list.size();
17 }

Callers 1

HuffmanCoderMethod · 0.95

Calls 3

upheapMethod · 0.95
addMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected