AntInLoop

Centroid Decomposition Game — Find the Tree Centroid

Find the exact tree centroid whose removal splits every remaining component to size <= N/2 on a live SVG tree.

Time Complexity: O(n log n)

Study the algorithm · Watch Visualizer · All Algorithm Games