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 / anonymous
30 binary trees 10 for each 1,2 and 3.
only 1 binary search tree as with 2 as root node 1 as right child and 3 as left child.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between Array and Array List ? Explain in brief with example.
What is a pseudocode example?
What is map entry?
What will you prefer for traversing through a list of elements between singly and doubly linked lists?
What does simulation of queues mean?
What is the difference between hashset and arraylist?
Can a class have a constructor?
Why is data structure?
What is the default capacity of hashmap?
Can arraylist hold duplicates?
What is the advantage of the heap over a stack?
What is impact of signed numbers on the memory using data structures?
Is list an array?
What are examples of data structures?
How do you find the height of a binary tree?