【Leetcode 310】 Minimum Height Trees
Question:
A tree is an undirected graph in which any two vertices are connected by exactly one path. In other words, any connected graph without simple cycles is a tree.
Given a tree of n nodes labelled from 0 to n - 1, and an array of n - 1 edges where ed
原创
2020-10-14 14:17:58 ·
81 阅读 ·
0 评论