Question 1
For the expression (7-(4*5))+(9/3) which of the following is the post order tree traversal?
Question 2
Which traversal's pseudo code is written here?
order(node) Q → Queue() Q.push(node) while !Q.empty(): current_node = Q.pop() print current_node.value if current_node.left is not NULL: Q.push(current_node.left) if current_node.right is not NULL: Q.push(current_node.right)
Question 3
Which traversal is shown by this pseudo code?
Order(node): if node is not null: Order(node.left) print node.value Order(node.right)
Question 4
The time complexity of calculating the sum of all leaf nodes in an n-order binary tree is __________
Question 7
In a full binary tree if there are L leaves, then total number of nodes N are?
Question 9
Construct a binary tree by using post-order and in-order sequences given below.
In-order: N, M, P, O, Q
Post-order: N, P, Q, O, M
There are 10 questions to complete.