Recent questions tagged binary-tree

2 votes
1 answer
121
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...
0 votes
0 answers
122
0 votes
1 answer
123
What is the time complexity for finding the height of the binary tree?a) h = O(loglogn)b) h = O(nlogn)c) h = O(n)d) h = O(log n)
1 votes
2 answers
124
1 votes
1 answer
125
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)
1 votes
3 answers
128
Consider a binary tree T that has 50 leaf nodes. Then the number of nodes in T that have exactlyONE children are ______.
0 votes
0 answers
129
what is the worst case possible height of an avl tree ???https://www.geeksforgeeks.org/practice-questions-height-balancedavl-tree/how does 1.44*logn comes ????
0 votes
0 answers
130
If each node of the B-tree is 80 percent full, then what is the average number of keys per node of the above B tree?
2 votes
2 answers
131
How to Construct Full Binary Tree from given preorder and postorder?Thank you.
1 votes
1 answer
132
2 votes
2 answers
134
What is the difference between full binary tree ,almost complete binary tree and complete binary tree?explain by drawing trees
1 votes
2 answers
135
$\text{Given preorder and inorder, how many binary trees are possible?}$
0 votes
1 answer
136
How to generate post order array from given in order array [8,6,9,4,7,2,5] ?
1 votes
1 answer
139
Give an algorithm for finding the height or depth of the tree
6 votes
1 answer
141
What is the number of binary trees with 4 nodes which when traversed in pre-order gives the sequence 1,2,3,4?
1 votes
4 answers
143
Given a preorder, postorder and inorder traversal of a tree, is it always possible to obtain a tree that satisfies each of the three conditions? Or is it possible to not ...
2 votes
1 answer
149
NUMBER OF BINARY TREE POSSIBLE WITH 3 UNLABELED NODES?
2 votes
0 answers
150
WHAT IS THE RECURRENCE RELATION TO the number of different binary trees on n distinct NODES?I THINK IT IS- T(n)=∑nk=1T(k−1)T(n-k)