aman-raza / Friends_Hack

Codes with Diversity
MIT License
13 stars 89 forks source link

Diameter of a Binary Tree #139

Closed I-Infinatoo closed 3 years ago

I-Infinatoo commented 3 years ago

Program will calculate the Diameter of the given Binary Tree in O(n) time complexity, where n is the number of nodes in the tree.