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
In what areas do data structures are applied?
What is the difference between list, set and map?
What is the use of sorting?
How to check array contains value or not?
Differentiate between set and map.
What is the use of placement new?
What is an array vs list?
Can we extend an array after initialization?
What is the difference between one and two dimensional?
Is list a data structure?
What happens if we put duplicate key in hashmap?
Define degree of the node?
What are the tasks performed during postorder traversal?
Is hashmap faster than arraylist?
Difference between calloc and malloc ?