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
Explain the uses of binary tree.
What is the minimum number of queues needed when implementing a priority queue?
Define disjoint set adt?
What is time complexity of sorting algorithms?
What is the difference between the hash table and hash map?
What do you mean by Syntax Error
Can we use ordered set for performing binary search?
Model a data structure for a DFA that takes an event as parameter and performs a desired action.
How does arraylist size work?
What is the use of hashtable?
What is a data structure definition?
Given an unsorted linked list, and without using a temporary buffer, write a method that will delete any duplicates from the linked list?
What data structure does a binary tree degenerate?
What is a pseudocode example?
What is collision in data structure?