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 the simplest file structure? (a) Sequential (b) Indexed (c) Random (a) Sequential
How will you check the validity of an expression containing nested parentheses?
How do treesets work internally?
What is the capacity of arraylist?
Should I use hashmap or hashtable?
What is difference between hashmap and arraylist?
Explain the Complete structure of hashmap along with the basic coding of the hashmap internal implementation.
How to find 3rd element from end in a linked list in one pass?
What is the impact of signed numbers on the memory?
How does hashset maintain order?
Is an arraylist a vector?
Treemap orders the elements on which field?