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
Write the recursive c function to count the number of nodes present in a binary tree.
what is the difference between singly and doubly linked lists?
What is a Queue? Explain its operation with example?
Differentiate between comparable and comparator.
Why hashmap is faster than hashtable?
Which interfaces are implemented by concurrentskiplistset?
Is quicksort divide and conquer?
What is data structure in programming language?
What is dequeue operation?
Explain the implementation of an AVL tree and Binary tree.
What is mergesort and hashtable?
What is a sorting algorithm in data structure?
Why is data structure?
What is garbage collection in data structure?
Explain heapsort. What is its complexity?