Monday, April 23, 2018

How many different trees can be constructed using n nodes

Answer is 2^n - n

So, if there are 10 nodes, you will have (1024 - 10) = 1014 different trees! 

No comments:

Post a Comment

Categories