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 is the meaning of anonymous array? Explain with an example?
Differentiate between push and pop?
What is the difference between array and list?
What is best time complexity?
What is homogeneous array?
Which searching algorithm is best?
Does treemap preserve order?
What is the difference between data type and data structure?
Which sorting is best?
What do you mean by back edge?
What is binary tree and its types?
What is hash value of a string?
What are linked lists good for?
What type of algorithm is binary search?
What are linked list?