We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Tree: Preorder Traversal
- Discussions
Tree: Preorder Traversal
Tree: Preorder Traversal
+ 1 comment Seems like a silly problem for day 7 of 7 day prep course.
+ 0 comments Evaluated as "Advanced"... Solved in 5 min. But some previous tasks evaluated as Basic or Intermediate took aroud 1 day. lol
+ 1 comment Is the typescript code supposed to have everything except the preOrder function predefined, like the starter code for other languages?
Currently it requires you to define the BinaryTree data type and convert the input string to a Binary Tree.
+ 0 comments Why is this problem "Advanced"? Literally solved in 2 minutes.
+ 0 comments my C++ Solution
void preOrder(Node *root) { if(root) {cout<<root->data<<" "; preOrder(root->left); preOrder(root->right); } }
Load more conversations
Sort 24 Discussions, By:
Please Login in order to post a comment