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 / shalini
binary search tree=(2^n)-n i.e (2^3)-3=5
binary tree=((2^n)-n)*n! i.e ((2^3)-3)*3!=30
this is the right answer!!!!
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
In an avl tree, at explain what condition the balancing is to be done?
Does arraylist maintain insertion order?
Define an algorithm. What are the types of algorithms?
What are the applications of stack?
What is the difference between push and pop?
What is the time complexity of arraylist and linked list?
Why do we use trees in data structures?
What is the default size of arraylist?
What are the Advantages and disadvantages of Array?
What is the purpose of sorting?
What thread means?
Why would you use a linked list?
When is a graph said to be weakly connected?
Can you list out the areas in which data structures are applied extensively?
What is sorting an array?