push BH corrigé

This commit is contained in:
Favary Pierre 2021-04-12 09:32:58 +02:00
parent 53eb7eaedf
commit 259d69c5c6

View file

@ -144,7 +144,8 @@ public class BinaryHeap<E extends Comparable<E>> implements PriorityQueue<E> {
this.array.set(index, this.array.get(this.currentSize-1));
this.currentSize--;
this.percolateDown(index);
}
this.percolateUp(index);
}
@Override
public E findMin() throws EmptyPriorityQueueException {