摘要: 此题可以使用两种思路来解决: DFS Union-Find 以下是使用上一篇的数据结构Union-Find来处理的代码: /** * LeetCode_146 * https://leetcode.com/problems/redundant-connection/description/ * ht 阅读全文
posted @ 2020-02-15 01:31 johnny_zhao 阅读(110) 评论(0) 推荐(0) 编辑