Back to Question

Minimum Height Trees

Question Explain

A tree is an undirected graph in which any two vertices are connected by exactly one path. Find all Minimum Height Trees (MHTs) and return the roots of those MHTs. Use a graph peeling technique (BFS).

Start Trying This Question Simulation

Click "Start Speaking" and answer the question naturally.