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
Can arraylist be empty?
What is a simple path?
What is the difference between hashmap and treemap?
Can we use ordered set for performing binary search?
What is best time complexity?
What is the difference between hashset and linkedhashset?
What is the minimum number of queues that can be used to implement a priority queue?
How do you find the time complexity of a bubble sort?
Why quicksort is called quick?
How to inverting a function in sort and searching?
List some applications of queue data structure.
Which is best book for data structures?
How would you implement two stacks using a single array?
What is the non linear data structure?
You want to insert a new item in a binary search tree. How would you do it?