Back to Questions

Minimum Height Trees

130.6K viewsAsked at Salesforce
Medium

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

Practice answering orally or with text to get instant AI feedback.

Practice with This Question