Forked from
steven.liatti / poo2019numeric
24 commits behind, 15 commits ahead of the upstream repository.
-
loick.pipolo authoredloick.pipolo authored
BinaryHeap.java 524 B
public class BinaryHeap{
private int[] heap;
public BinaryHeap(){
this.heap = new int[10];
}
public BinaryHeap(int[] values){
int[] newHeap = new int[values.length];
for (int value : values){
for (int i = 0; i < newHeap.length; i++){
}
System.out.println(newHeap[1]);
}
this.heap = newHeap;
}
public static void main(String[] args){
BinaryHeap test = new BinaryHeap(new int[]{10,2});
}
}