Question: A binary tree has a node n , which is reachable in 5 steps from the root of the tree. A level - order traversal
A binary tree has a node n which is reachable in steps from the root of the tree. A levelorder traversal is performed on the tree, and the nodes are stored in an array with based indexing in the order in which they are visited. What will be the maximum possible index of n in this array?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
