Template Function ADS::treeDiameter(const BinaryTree<T> *)

Function Documentation

template<class T>
std::pair<int, int> ADS::treeDiameter(const BinaryTree<T> *t)

treeDiameter() of a binary tree: its height and the edges of its longest path, ( -1 , 0 ) for the empty tree