• recategorized by
850 views
0 0 votes
Consider the binary tree where the number of nodes in each left sub-tree is within a factor of 2 of the number of nodes in the corresponding right sub-tree. Also, a node is allowed to have only one child if that child has no children. What will be the minimum number of nodes in such a tree with a height of 5? (root is at a height of 1).

1 Answer

Position:
Show:

Related questions

0 0 votes
5 5 answers
652
652 views
Samayank_Goel asked Jun 23, 2025
652 views
Stack size in the case of a balanced Binary Tree is logn (Best Case) and in case of unbalanced Binary Tree is n (Worst Case), what is 'n' here?
3 3 votes
3 answers 3 answers
3.4k
3.4k views
dd asked Aug 23, 2016
3,426 views
Suppose we do not have a parent pointer in the nodes of a search tree, only left-child and right-child. Which of the following operations can be computed in time $O(\log ...
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...
1 1 vote
1 1 answer
19.6k
19.6k views
pradeepchaudhary asked Aug 19, 2018
19,612 views
8. What are the worst case and average case complexities of a binary search tree?a) O(n), O(n)b) O(logn), O(logn)c) O(logn), O(n)d) O(n), O(logn)