You are viewing a single comment's thread. Return to all comments →
void postOrder(node *root){ if(root!=NULL){ postOrder(root->left); postOrder(root->right); cout<<" "<data; } }
Is the above given code is right ????
Tree: Postorder Traversal
You are viewing a single comment's thread. Return to all comments →
void postOrder(node *root){ if(root!=NULL){ postOrder(root->left); postOrder(root->right); cout<<" "<data; } }
Is the above given code is right ????