Recent questions tagged binary-tree

0 votes
2 answers
211
Whats wrong with option B?Give an example?
2 votes
2 answers
212
can anyone define the procedure to find the common ancestor of any two given nodes in balanced BST..??
14 votes
3 answers
213
6 votes
2 answers
214
Mark the balance factor of each node on the tree given in the below figure and state whether it is height-balanced.
8 votes
2 answers
215
Define the height of a binary tree or subtree and also define a height-balanced (AVL) tree.
2 votes
1 answer
218
number of distinct binary tree,that can be created by 5 nodes(distinct)
5 votes
1 answer
219
1 votes
1 answer
220
The answer is given as 14.I calculated using Catalan number but the answer did not come as 14.
0 votes
3 answers
223
The minimum size that an array may require to store a binary tree with n nodes$2^{\left \lceil(log_2(n+1)) \right \rceil -1}$$2n-1$$2n-n+1$$n+1$
4 votes
1 answer
225
0 votes
1 answer
226
18 votes
3 answers
227
Construct a binary tree whose preorder traversal is$K\;L\;N\;M\;P\;R\;Q\;S\;T$and inorder traversal is$N\;L\;K\;P\;R\;M\;S\;Q\;T$
19 votes
3 answers
228
State whether the following statements are TRUE or FALSE:If the number of leaves in a tree is not a power of $2,$ then the tree is not a binary tree.
31 votes
5 answers
229
State whether the following statements are TRUE or FALSE:It is possible to construct a binary tree uniquely whose pre-order and post-order traversals are given?
0 votes
1 answer
230
I have seen that in some question height and deapth of binary tree are used interchangably. So, I request to say difference between height and deapth of a binary tree.
1 votes
1 answer
231
0 votes
0 answers
232
IN a binary tree, the number of internal nodes of degree one is 5 and the number of internal nodes of degree 2 is 10. The number of leaf nodes in the binary tree isA) 15B...
0 votes
0 answers
233
In a binary tree, for every node the difference between the number of nodes in the left and right sub trees is atmost 2. If the height of the tree is h 0 , then the min...
2 votes
1 answer
234
The height of a binary tree having $ \text{i’}$ nodes at level $ \text{i’}$ considering root to be at level $1$ is __________, where $ n\text{’}$ is the total no. o...
0 votes
1 answer
237
Consider the array given below:20 10 9 8 7 6 5It isa full binary tree in array representationa complete binary tree in array representationa max-heap in array representat...
1 votes
2 answers
238
3 votes
4 answers
240
What is the number of binary trees with $4$ nodes which when traversed in pre-order gives the sequence A, B, C, D?