Guest User

Untitled

a guest
Dec 16th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. (this.heap[index]<this.heap[parent])? this.heapifyUp(index) : this.heapifyDown(index);
  2.  
  3. this.heap.slice((this.heap.length-1), 1);
  4.  
  5. swap(this.heap, 0, (this.heap.length-1));
Add Comment
Please, Sign In to add comment