A complete binary tree B, containing 50 nodes, is stored in a vector.
(a). What is the level of the tree?
(b). How many nodes are leaf nodes? Nonleaf nodes?
(c). What is the index of the parent of B[35]?
(d). What are the indices of the children of node B[20]?
(e). What is the index of the first node with no children? With one child?
(f). What are the indices for all nodes at level 4 in the tree?