Calculate Diameter of Multi-Node Tree

The diameter of a tree (sometimes called the width) is the number of nodes on the longest path between two leaves in the multi-node tree.

Login to see Answer and Coaching Session More interview questions