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


Please Help Members By Posting Answers For Below Questions

What does list clear do?

478


Why do we use data structures?

467


what is Linked lists?

603


What is the difference between Array and Array List ? Explain in brief with example.

553


Will arraylist maintain insertion order?

497






When ArrayIndexOutOfBoundsException occurs?

651


What is bubble sort technique?

494


What is insertion sort technique?

481


Is arraylist a list?

446


what is the difference between dynamic as well as non - dynamic data structures.

515


Define shortest path?

563


What are the advantages of binary search over linear search?

620


Are collections thread safe?

457


What is a list of lists?

510


Can arraylist shrink?

484