VAR-solutions/Algorithms

Centroid of a given Tree | C++

VyomGarg47 opened this issue · 1 comments

Algorithm to find centroid of a given tree.
Centroid of a Tree is a node which if removed from the tree would split it into a ‘forest’, such that any tree in the forest would have at most half the number of vertices in the original tree.
Language - C++

Please assign this issue to me.