Skip to content
Snippets Groups Projects
Commit a25ec066 authored by loick.pipolo's avatar loick.pipolo
Browse files

test heap

parent d8c50a79
No related branches found
No related tags found
No related merge requests found
package ch.hepia.structure;
import java.lang.Math;
import java.util.Random;
import java.util.List;
public class BinaryHeap{
private int[] heap;
public int[] heap;
private int maxCap;
private int nbOfElem;
......@@ -125,11 +127,7 @@ public class BinaryHeap{
}
public static void main(String[] args){
BinaryHeap test = new BinaryHeap(15);
test.populate(19);
test.printHeap();
int depth = test.depth();
System.out.println("profondeur = " + depth);
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment