Skip to content

Incorrect number of hops #1

@rishabhlakhotia

Description

@rishabhlakhotia

nodes[i].outgoing[j] = j;

Set this as nodes[i].outgoing[j] = 1; which should be the initial value of number of hops.

nodes[i].outgoing[j] = k;

Here, every time a new path is chosen, increase the number of hops by 1 by doing nodes[i].outgoing[j] += 1;

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