do BFS. On Oct 23, 6:31 pm, Harshal <[email protected]> wrote: > hi, i need to find the number of nodes at each level of a binary tree..the > binary tree may not be balanced.. > > output: > Level 0 - 1 node > Level 1 - 2 nodes > Level 2- 3 nodes > > and so on..based on the tree structure..I am not able to count at each > level..pls suggest a way to do that. > > -- > Harshal Choudhary
-- 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.
