Floyd : City of Blinding Lights

  • + 2 comments

    I've done the same. Dijkstra's. For me, tc4 and tc5 timeout. Everything else is fine. I think it's taking too much time at finding the next vertex with smallest edge. Though I used a python dictionary, it still might take very long for all that queries.

    EDIT: There are duplicate queries. Once you keep that in mind, all the tcs pass. It did for me.