Guest User

Untitled

a guest
Jun 24th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. mergeHt(t1, t2){
  2. if (!full(t1) && !full(t2)){
  3.  
  4. }
  5.  
  6. Node root = lastLeaf(t2);
  7. delete(root, t2);
  8. HeapTree tree = makeTree(root, t1, t2);
  9. bubbleDown(tree);
  10. return tree;
  11. }
Add Comment
Please, Sign In to add comment