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 are the advantages and disadvantages of copyonwritearraylist?
What are the advantages of data structure?
Is treeset thread safe?
Define Data Structures?
What is the easiest sorting method to use in data structures?
Explain the priority queue?
What is a linear search?
Can arraylist contain duplicates?
What is ascii sort order?
Does treeset allow null values?
What is indexing an array?
What are the advantages of array?
What are the advantages and disadvantages of linked list?
Can a hashmap have duplicate keys?
What are the types of collision resolution strategies in open addressing?