• edited by
1,545 views
2 2 votes

A.  Total no. of trees that were there in the forest.

B. Total no. of nodes in the forest.

C. Total no. of nodes which have only right child.

D. Return max element among all nodes.

1 Answer

2 2 votes
According to the given algorithm it just calculates total no of right child of right sub tree only which doesnt matches with any of the options given.
Position:
Show:

Related questions

0 0 votes
1 answers 1 answer
475
475 views
ASUR asked Oct 31, 2025
475 views
answer is D if i delete root y then surely it will replace with s bec inordr succ. but i'm not getting how enqu. and deq. process pls explain that
0 0 votes
0 0 answers
757
757 views
Na462 asked Jan 16, 2019
757 views
Consider a binary tree for every node | P - Q | <= 2. P represents number of nodes in left subtree of S and Q represents number of nodes in right subtree of S for h 0. T...
0 0 votes
0 0 answers
1.8k
1.8k views
Pawan Kumar 2 asked Dec 4, 2018
1,802 views
Consider a binary tree, where for every node $P-Q\leq 2$.Prepresent number of nodes in left sub tree for node S and Q represents the number of nodes in right sub tree for...
0 0 votes
0 0 answers
504
504 views
Soumya29 asked Oct 22, 2018
504 views
I know the answer. But is there any general FORMULA for it?If yes, please provide the complete derivation of it. In the solution, they used $\rightarrow 2^{h-1}+1.$ I tri...