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
Define an equivalence relation?
What member function places a new node at the end of the linked list?
What is a list in data structure?
What is the time complexity of hashmap get () and put () method?
What are the two types of data?
If you do not initialize an array what will happen?
What is basic data structure?
What is stable sort?
Explain exception filter?
What are the disadvantages of linked list?
What is the logic to reverse the array?
Can arraylist be empty?
What is difference between array and string?
Why arraylist is not efficient for manipulation?
What is the Role of push() and pop() method?