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 / rohit
binary tree = n!(2^n - n).
for n =3 its 30.
for BST its 2n
C * [1/(n+1)]
n
for n=3 its 5.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Differentiate between the singly linked list and doubly linked list.
Define union-by-weight?
Which is the parent class of abstractsequentiallist class?
Is array a data type?
What is treemap chart?
What is the best case complexity of bubble sort?
Can you override methods of arraylist?
How many sorting algorithms are there?
Why is map not a collection?
What is default array size?
What is data structures in computer science?
Which sort algorithm is best?
How do you sort an array in decreasing order?
What is difference between list and linked list?
Write a recursive c function to calculate the height of a binary tree.