Monday, June 20, 2011

Find the sum of all the nodes in a level

Given a tree T where each node contains a positive integer, find all the sum of the nodes at the same level and print it.

No comments:

Post a Comment