Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

preorder

void preorder(Node* root){
    if(root != NULL){
        cout<<root->data<<" ";
        preorder(root->left);
        preorder(root->right);
    }
}
Source by github.com #
 
PREVIOUS NEXT
Tagged: #preorder
ADD COMMENT
Topic
Name
8+2 =