How many different trees are possible with 10 nodes ?
Answer / phool chand
1014
For example, consider a tree with 3 nodes(n=3), it will have the maximum combination of 5 different (ie, 23 - 3 = 5) trees.
In general: If there are n nodes, there exist 2n-n different trees.
Is This Answer Correct ? | 0 Yes | 0 No |
Which is faster arraylist or hashmap?
ple.. briefly describe the purpose of having a base case and a recursive case in a recursive algorithm
Classify the Hashing Functions based on the various methods by which the key value is found.
Can treeset contain null?
What is the two-dimensional array?
What is a linear search?
What is the use of space complexity and time complexity?
What are the advantage of collection classes over arrays?
Mention some drawbacks of the linked list.
What are AVL trees?
List the types of rotations available in splay tree?
Convert the following infix expression to post fix notation ((a+2)*(b+4)) -1