Skip to content

Road Block solution #13

@varmichelle

Description

@varmichelle

rblock solution:

  • keep an adj mat with only the shortest path
  • run dijkstra's to find shortest distance between house and barn (make sure to keep track of the edges traversed)
  • iterate over the edges traversed:
    - double each edge individually
    - run dijkstra's to find shortest distance
  • print max distance - original distance

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