diff --git a/src/main/java/ch/hepia/structure/BinaryHeap.java b/src/main/java/ch/hepia/structure/BinaryHeap.java index 1e94255325ae5ba0d1efa475aebf855e7ed2c817..dda7c3f01b1a68926b41b49ed4214552a1c54f3d 100644 --- a/src/main/java/ch/hepia/structure/BinaryHeap.java +++ b/src/main/java/ch/hepia/structure/BinaryHeap.java @@ -1,9 +1,11 @@ +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