Monil200 / CPrograms

temp for daily activities
1 stars 0 forks source link

BT diameter #14

Open Monil200 opened 10 years ago

Monil200 commented 10 years ago

Diameter of a BT is the maximum distance between 2 nodes. So we recursively calculate the distance between every 2 nodes and keep carry forwarding the maximum distance at any point in time. Its a recursive approach.