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
Differentiate bfs and dfs?
How does arraylist size work?
Explain what are the methods available in storing sequential files ?
What is comparator interface used for?
What are the average and worst time complexity in a sorted binary tree is
Which one is the simplest sorting in data structure?
What sort of serious problems have you experienced, and how have you handled them?
In rdbms, explain what is the efficient data structure used in the internal storage representation?
What is time complexity of hashmap?
Differentiate between failfast and failsafe.
How many types of data structures are used?
what are the applications of Linked Lists?
What is unbounded queue?
Can a stack be described as a pointer? Explain.
Explain the terms base case, recursive case, binding time, run-time stack and tail recursion.