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
Write the algorithm for converting infix expression to postfix expression?
What is a comparator function?
What is the family trees and connection by clause?
Is it legal to initialize list like this?
What are the basic operations of stack?
Explain binary searching, Fibonacci search.
How many types of linked list exist?
Does treeset allow duplicates?
How can I learn data structures?
How do you access the values within an array?
What is a data structure node class?
Describe the complexity of Quick Sort
Is array of data structure?
Differentiate between arraylist and linkedlist.
How do you get placements?