Back to QuestionsPractice with This Question
Minimum Height Trees
130.6K views•Asked 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.