Software Engineer Interview Questions
Saturday, 11 January 2014
PreOrder(Recursive)
void preorder(node *T){
if(T){
cout<<T->data<<endl;
preorder(T->left);
preorder(T->right);
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment