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
What is sequential mapping in data structure?
What is a circular singly linked list?
What is faster array or arraylist?
What is a data structure? What are the types of data structures?
Why using cookie to store session info is a better idea than just using session info in the request?
What is precision in data structures?
Explain the term base case?
What is Storage Structures and File Structures? Can you show their relation? What are the examples of each? Thanks
Why hashmap is faster than hashtable?
Which is better hashmap or hashtable?
What exactly is data?
What are the 4 types of data?
What are the topics in data structures?
What is bitonic search?
Why do we use data structures?