alvsjo

zad8

Apr 14th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. struct node* najvisiList(struct node* korijen)
  2. {
  3.      int d=mindepth(korijen);
  4.      struct node* temp=korijen;
  5.      while (d>0)
  6.      {
  7.          if(temp->left!=NULL)
  8.             temp=temp->left;
  9.          else temp=temp->right;
  10.          d--;
  11.      }
  12.     return temp;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment