Pergunta de entrevista da empresa Oracle

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

Resposta da entrevista

Sigiloso

16 de mar. de 2016

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