技术栈

unionfind

念谨
1 年前
c++·算法·leetcode·深度优先·dfs·并查集·unionfind
leetcode721. 合并账户【两种方法;并查集;dfs】如果unordered_map改为map,更慢。