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 / gurwinder
no.of binary trees=n!*(2^(n)-n)
no.of bst's=n*[2^(n)-n]
if 1,2,3 are key nodes
then:
no. of BST=15
no. of binary trees= 30
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
Is null a binary search tree?
List out the applications of a linked list?
What is the default value of Array?
Write the algorithm for converting infix expression to postfix expression?
What are trees in data structures?
What is a pseudocode example?
Which process places data at the back of the queue?
What is subtree?
What is ascending and descending order?
What is difference between concurrenthashmap and hashtable?
What is data type explain?
Can I provide array size dynamically?
List the limitations of linear probing?
Can you sort a string?
Explain the implementation of an AVL tree and Binary tree.