Summary Line: This function helps us to calculate the diameter of our tree. Diameter is the number of nodes between the two farthest nodes in our tree. Args: root- root of our inputted tree Returns- h- height of the tree d- diameter of the tree Intuition-
(root)
source not stored for this graph (policy: none)
no test coverage detected