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
Which is faster arraylist or linked list?
You want to insert a new item in a binary search tree. How would you do it?
What is hash data type?
What is the Role of push() and pop() method?
What is the use of isEmpty() member methods?
How do I rearrange rows in numbers?
What are the advantages of sorting?
What are the categories of avl rotations?
Why is quicksort unstable?
Why hashmap is faster than hashtable?
What are the objectives of studying data structures?
What is the difference between ienumerable and list?
Which sort is best for linked list?
Can sets contain duplicates?
What is difference between rb tree and avl tree?