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 / poornakala
for binary search tree, no of trees, (2^n)-n... here 8-3=5
trees... u can draw n see...
for binary tree, no of trees n(2^n)-n here 3*5=15...
replace node in each bst with other two values and see....
| Is This Answer Correct ? | 72 Yes | 48 No |
Post New Answer View All Answers
What happens when arraylist is full?
What is a linear search?
What is a pass in bubble sort?
How do signed and unsigned numbers affect memory?
Have you ever used HashTable and Directory?
What are the disadvantages array implementations of linked list?
What does arraylist remove do?
Write a Program for Insert in a sorted list
What is an externalizable interface?
Is heap sort faster than quicksort?
Explain Array of pointers?
State the demerits of linked representation of binary trees?
What is heap tree in data structure?
Describe linear probing with an example.
What are the five examples of data?