Advertisement
daniele2013

Untitled

Jun 24th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1. Abr __23_06_2016(Abr t, int k){
  2.     if(t){
  3.         if(t->key < k)
  4.             t->dx = __23_06_2016(t->dx, k);
  5.         else if(t->key > k)
  6.             t->sx = __23_06_2016(t->sx, k);
  7.     }
  8.     else{
  9.         t = (Abr)malloc(sizeof(albero));
  10.         t->key = k;
  11.         t->sx = t->dx = NULL;
  12.     }
  13.     return t;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement