Skip to content

Weight Quick Union should use the size of the root #2

@yocontra

Description

@yocontra

https://github.com/mgechev/javascript-algorithms/blob/master/src/graphs/searching/weightquickunion.js#L52

Currently the sizes of the specified nodes are being used. It should use the root node size. Will send a PR if I have a second

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions