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 / gurwinder
no.of binary trees=n!*(2^(n)-n)
no.of bst's=n*[2^(n)-n]
if 1,2,3 are key nodes
then:
no. of BST=15
no. of binary trees= 30
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
Is hashset a collection?
What does map stand for?
What is a multiset table?
State the advantages of using postfix notations?
What is dequeue in data structure?
Explain the expression trees?
What are arrays give example?
Does arraylist guarantee insertion order?
Explain the term binding time?
Which is faster treemap or hashmap?
Can sets contain duplicates?
What is linked hash set?
What is meant by ordered and sorted in collections?
What do you mean by data and data structure?
Which sorting is best for large data?