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 |
How do you define a set?
What is data structure operations?
What is the time complexity of selection sort?
Which sorting is worst?
What is hash data type?
Which is better hashmap or hashtable?
Why using cookie to store session info is a better idea than just using session info in the request?
Define a set?
For the following COBOL code, draw the Binary tree? 01 STUDENT_REC. 02 NAME. 03 FIRST_NAME PIC X(10). 03 LAST_NAME PIC X(10). 02 YEAR_OF_STUDY. 03 FIRST_SEM PIC XX. 03 SECOND_SEM PIC XX.
What is the difference between linked list and array?
What are different techniques for making hash function?
What is meant by ordered and sorted in collections?