Skip to content

Conversation

@MiyaPan
Copy link
Contributor

@MiyaPan MiyaPan commented Sep 2, 2021

add union find in algorithrm

@netlify
Copy link

netlify bot commented Sep 2, 2021

✔️ Deploy Preview for thinkbucket ready!

🔨 Explore the source changes: 94966ff

🔍 Inspect the deploy log: https://app.netlify.com/sites/thinkbucket/deploys/613046793016140007bd33ca

😎 Browse the preview: https://deploy-preview-499--thinkbucket.netlify.app

// 如果他俩老大是同一个人,那还处理啥,不就是我们要的结果啦
if (px !== py) {
this.parents[py] = px;
this.count--;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this.count--; 中count代表的是?

@goroyal
Copy link
Contributor

goroyal commented May 18, 2022

有点像是找公共祖先?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants