how to find the number of possible tree in the given tree.
Answer Posted / vikram_tp
you all are going wrong...
the formula which u have given is only working when n=2 or 3..
bt when n=4 the ans should be 14 not 12
when n=5 ans is 42 and not what comes by the formula...
so there isnt any formula for this..u have to count then by generating the trees by urself...
Is This Answer Correct ? | 18 Yes | 0 No |
Post New Answer View All Answers
What is sort in data structure?
How do you sort in ascending order in arraylist?
Why do we need searching algorithms?
How do you assign an address to an element of a pointer array ?
Define depth and height of a node?
Is char array null terminated?
Can arraylist have duplicates?
What is the difference between set and unordered_set?
Do all declaration statements result in a fixed reservation in memory?
Is collection a class or interface?
Is boolean a data type?
What is the difference between null and void pointer in data structures?
Which is best book for data structures?
How many null values are allowed in hashmap?
What is a directed graph?