You are given a weighted directed graph of n nodes and e edges, source vertex and destination vertex
For each edge , output the shortest path between source and destination (-1 if not possible) if that edge is made bi-directional and it's weight is set to 0
n is probably 1e5
Any help would be highly appreciated
Floyd warshall algorithm would've been fine if n wasn't 1e5. Do you have link to the question? or is it yours?
Also tell us about number of edges and time limit.
Got this from a friend who told this is from some online assessment
If constraints were lower i think we can simply run Dijkstra e times .
I think this works ..
Thanks a lot man
May you live for 100 years
hey can you also help me with this
https://codeforces.net/blog/entry/126821
thanks
[Deleted]