Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct node* najvisiList(struct node* korijen)
- {
- int d=mindepth(korijen);
- struct node* temp=korijen;
- while (d>0)
- {
- if(temp->left!=NULL)
- temp=temp->left;
- else temp=temp->right;
- d--;
- }
- return temp;
- }
Advertisement
Add Comment
Please, Sign In to add comment