UnionFind就是acm中常用的并查集...
常用操作
Ref
相关问题:
Graph Valid Tree (权限题做不了嘤嘤嘤)
684. Redundant Connection
685. Redundant Connection II
UnionFind问题总结
原文:https://www.cnblogs.com/pdev/p/9536921.html