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
What are data and data types?
What is merge sort in daa?
Can array store heterogeneous data?
How to inverting a function in sort and searching?
What do you mean by structure property in a heap?
Explain exception filter?
Can we override compareto method for enumerations?
What is the difference between hashmap and treemap?
What is doubly linked list in data structure?
Why is hashset not ordered?
Why do we need linked lists?
What is the need for path compression?
What are the main differences between the linked list and linear array?
What is the impact of signed numbers on the memory?
Can you please explain the difference between array_name and &array_name?