edited by
1,752 views

2 Answers

Best answer
3 3 votes
It's so simple to solve this type of questions bro...

first you assume a tree which give different outputs for all your options, then run your algorithm by knowing the output you can tick corresponding option....

for this ans is height of the tree and assumed root of height = 1
selected by
2 2 votes

Option d .

We can write like this type of recurrence relation . And we take a binary tree and execute this algo  we get height of binary tree.

Position:
Show:

Related questions

1 1 vote
1 1 answer
581
581 views
3 3 votes
1 1 answer
2.8k
2.8k views
mcjoshi asked Aug 27, 2016
2,750 views
A binary tree has 127 nodes. Which of the following is an invalid height for this tree ?$a). 16 $$b). 6$$c). 21$$d). 43$
0 0 votes
2 2 answers
1.7k
1.7k views
Tushar Shinde asked Jan 15, 2016
1,691 views
I am stuck after JAN. It is not getting balanced even after 2 rotations. Can somebody help?
0 0 votes
1 1 answer
861
861 views
Misbah Ghaya asked Aug 16, 2022
861 views
Please list out the best free available video playlist for Binary Trees from Data structures as an answer here (only one playlist per answer). We'll then select the best ...