What can be wrong in this implementation of dijkstra algorithm? s is the source, t is destination, n is no. of vertices

前端 未结 0 985
我在风中等你
我在风中等你 2021-01-03 17:46

adj is the adjacency list, cost has weights of the edges. I have used set instead of priority queue.

long long distance(vector > &         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题