Skip to content

Incorrect number of hops #1

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;

Activity

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

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