Guest User

Untitled

a guest
May 21st, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. Tree heap ( int a[], int n ){
  2.  
  3. Tree new = NULL;
  4.  
  5. heapaux ( int a, n, int i=0, new );
  6. return new;
  7. }
  8.  
  9. void heapaux ( int a[], int n, int i, Tree new ){
  10.  
  11. int esq, dir;
  12.  
  13. if(i<n){
  14. insere(i,new);
  15. heapaux(a, n, esq=LEFT(i), new);
  16. heapaux(a, n, dir=RIGHT(i), new);
  17. }
  18. }
Add Comment
Please, Sign In to add comment