GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Placement Papers  >  Adobe

 Print  |  
Question:  An N-ary tree has N sub-nodes for each node, it has M non-leaf nodes
Find the no of leaf nodes?




May 05, 2006 13:29:51 #2
 Bharat Sarda   Member Since: Visitor    Total Comments: N/A 

RE: An N-ary tree has N sub-nodes for each node, it ha...
 
Correct Answer is :  (n - 1)Śm + 1
     

 

Back To Question