In this video,we will calculate a very interesting problem of binary tree i.e. How to calculate the Diameter of a Binary tree?.
The diameter is basically the maximum distance between the 2 points of a circle similarly diameter of a binary tree is the maximum distance between any two nodes.
In this video, you will also learn how to calculate the time complexity of a binary tree by taking example of the 2 different variations of a binary tree.
Join our Coding…