From a25ec066b90ba051e874132609bf6690637923e3 Mon Sep 17 00:00:00 2001 From: "loick.pipolo" <loick.pipolo@etu.hesge.ch> Date: Fri, 10 Jan 2020 06:47:51 +0100 Subject: [PATCH] test heap --- src/main/java/ch/hepia/structure/BinaryHeap.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main/java/ch/hepia/structure/BinaryHeap.java b/src/main/java/ch/hepia/structure/BinaryHeap.java index 1e94255..dda7c3f 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 -- GitLab