Minimum Height Trees
Medium
Graph Algorithms (Advanced)
For a tree with n nodes, any node can be chosen as the root. Print all roots that give a tree of minimum height, in ascending order.
Constraints
1 <= n <= 2 * 10^4
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.