![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
并查集
菜鸡9号
这个作者很懒,什么都没留下…
展开
-
Virtual Friends (并查集 map )
These days, you can do all sorts of things online. For example, you can use various websites to make virtual friends. For some people, growing their social network (their friends, their friends’ friends, their friends’ friends’ friends, and so on), has bec原创 2020-05-16 11:39:29 · 128 阅读 · 0 评论 -
Harmonious Graph (并查集 —父亲为最大值)
You’re given an undirected graph with n nodes and m edges. Nodes are numbered from 1 to n. The graph is considered harmonious if and only if the following property holds: For every triple of integers ...原创 2020-03-14 21:09:08 · 185 阅读 · 0 评论