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 / shalini
binary search tree=(2^n)-n i.e (2^3)-3=5
binary tree=((2^n)-n)*n! i.e ((2^3)-3)*3!=30
this is the right answer!!!!
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
What is data structure and its operations?
What are the disadvantages of sequential storage?
Is a hashset ordered?
Can you make an arraylist of arrays?
What does sorting an array do?
Explain the terms base case, recursive case, binding time, run-time stack and tail recursion.
Are dictionaries mutable?
Explain Stack
What are the disadvantages of circular list?
How many types of linked list exist?
How does dynamic memory allocation help in managing data?
What is a class user?
List the types of tree.
What is binary tree used for?
What is sorting an array?