Skip to content

you are adding the same nodes with with different key values in the queue #17

@anshul4819

Description

@anshul4819

try using if(mst[x]==true){continue;}
in this starting of the last while loop

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