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 / mousumi
binary search tree = 5
1 1 2 3 3
\ \ / \ / /
2 3 1 3 1 2
\ / \ /
3 2 2 1
binary tees = (2^3)-3=5
| Is This Answer Correct ? | 4 Yes | 6 No |
Post New Answer View All Answers
What is b tree in data structure?
What do you mean by open addressing?
Can we insert null in hashset?
What is difference between list set and map?
What is data structures in computer science?
What happens if we put duplicate key in hashmap?
Describe tree database. Explain its common uses.
Difference between abstract data type, data type and data structure?
Draw the B-tree of order 3 created by inserting the following data arriving in sequence – 92 24 6 7 11 8 22 4 5 16 19 20 78
Why is arraylist used?
What is binary tree in computer science?
How do you determine if a binary tree is height balanced?
Why is hashmap faster than treemap?
Is pointer a variable in data structure?
When would you use a tuple?