How many different binary trees and binary search trees can
be made from three nodes that contain the key values 1, 2 & 3?
Answer Posted / shweta
for binary tree ans is 5, the general formula is (2^n)-n
for binary search tree no. of tree possible is 3.
as root data can be either 1, 2 or 3
| Is This Answer Correct ? | 39 Yes | 38 No |
Post New Answer View All Answers
What is the difference between an array and vector?
How do you reference all the elements in a one-dimension array?
Mention the data structures which are used in graph implementation.
What is the difference between set and unordered_set?
Why is data structure important?
Is array size dynamic or fixed?
Can arraylist have duplicates?
How does bogo sort work?
What is a pass in bubble sort?
How do I use quick sort?
Why is data structure used?
What does arrays tostring do?
State the difference between primitive and non-primitive data types?
In rdbms, explain what is the efficient data structure used in the internal storage representation?
What is an expression tree?