Depth First Search Algorithm to Compute the Diameter of N-Ary Tree July 24, 2020 algorithms, c / c++, recursive No Comments Given a root of an N-ary tree, you need to compute the length of the diameter of the tree. The diameter of an N-ary tree is the length of … [Continue Reading...]