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 / hazrat hussain
Formula For BST is
{(2n)!/(n!*n)}/(n+1)
So for
N=1 BST=1
N=2 BST=2
N=3 BST=5
N=4 BST=14
N=5 BST=42
and so on
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How does arraylist store data?
Define a complete binary tree?
Can nsarray contain nil?
What is a b+ tree? Explain its uses.
Write the procedure to convert general tree to binary tree?
How to sequentially represent max-heap?
What is a data structure definition?
What do you mean by articulation point?
Differentiate between hashset and treeset.
Explain the types of linked lists.
Is list a data type?
Construct a doubly linked list using a single pointer in each node?
Define graph traversals?
Is hashmap a data structure?
What is a linear search?