Given an arithmetic expression, how would you display it using a binary tree. Followup : print the tree in a way so that it yields the given expression with parenthesis
Sigiloso
Memory wasnt a problem here so i was able to use recursion , i just formed a tree as a compiler would do and then performed inorder traversal printing open parenthesis each friends i had a left or a right child