Advertisement
Meruem

stampa nodi in posizione n

Jun 14th, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function stamp_nodo(t,n){
  2.     var cur,c1=0;
  3.     if(t.root==null){return;}
  4.     cur=t.root; if(c==n){return cur;} else{ c++;
  5.         stamp_nodo(t.lesft,n);
  6.         stamp_nodo(t.right,n);
  7.     }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement