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
Explain quick sort?
What is binary search in data structure?
Describe the types of data structures?
What is a data structure? What are the types of data structures? Briefly explain them
How is the front of the queue calculated ?
Is pointer a variable in data structure?
Describe binary tree and its property.
Does hashset guarantee order?
What is quick sort example?
Is learning data structures necessary?
What is the application of queue?
What do you mean by 2-3-4 tree?
Why do we need algorithm?
What is stack explain with diagram?
Why is data structure?