use levelorder traversal and calculate the number of node in same level by putting some condition :)
On Mon, Jul 26, 2010 at 1:53 PM, vineel yalamarth < [email protected]> wrote: > > > No dude, they asked me to find width , in the sense ... find the maximum > number of nodes in any level. > And if you know how to find the diameter do post it.... > > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<algogeeks%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- Thanks & Regards Umesh kewat -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
