Template Function ADS::maxWeightLevel

Function Documentation

template<class T>
int ADS::maxWeightLevel(Tree<T> *t)

the first level of largest weight, the weight of a level being the sum of the values of its nodes (the root at level 0), by a visit by levels

Pre:

t is a node