In: Computer Science
Draw the binary tree representation of the following arithmetic expression:
"( ( ( 6 + 3 ) * ( 3 - 2 ) ) / ( ( 3 + 10 ) + ( ( 8 - 3 ) - 2 ) ) * 9 )"
-Give an O(n)-time algorithm for computing the depth of all positions of a tree T, where n is the number of nodes of T.
THANK
YOU. Please give an upvote. If any queries or changes needed please
comment will respond ASAP!!!!