problems

Trees Height

The height of a tree is defined to be the maximum distance from the root node to any leaf node. Write a function to calculate the height of an arbitrary tree.
2022-05-01
2 min read