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 / kanha
for binary tree answer is n! ways that is 3!=6
For Binary search tree n ways..that is 3
| Is This Answer Correct ? | 17 Yes | 52 No |
Post New Answer View All Answers
What is bubble sort and quick sort?
What is an expression tree?
How many links are there in a binary tree of N nodes?
There is a program which inserts and deletes node in a sorted singly linked list. There is a bug in one of the modules, how would you debug it?
What is the use of tree data structure?
List the applications of stacks?
What is binary tree and its types?
Explain binary representation?
Where is insertion sort used?
Which process places data at the back of the queue?
What are different dynamic memory allocation technique in c.
What is circular linked list?
Differentiate between the singly linked list and doubly linked list.
Difference between hashset and treeset?
Can tuple be sorted?