Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update bridge-searching-online.md #1278

Merged
merged 1 commit into from
Jun 8, 2024

Conversation

meetthehorizon
Copy link
Contributor

a = find_2ecc(a) is called in the add_edge function, then again in the make_root(int v) function as the first line which is redundant.

@adamant-pwn
Copy link
Member

Yeah, I suppose unless someone uses make_root independently from add_edge, it's unlikely to have any side effects. And also semantically makes somewhat more sense without find_2ecc call. Thanks!

@adamant-pwn adamant-pwn merged commit 59f42fc into cp-algorithms:master Jun 8, 2024
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.

None yet

2 participants