please check my code i am getting wrong ans
Getting wrong ans
Edges are m not n, so change your first loop.
And you need to print the distances from node 1 to node n, and not randomly, so don’t use a unordered_map.
please check my code i am getting wrong ans
Edges are m not n, so change your first loop.
And you need to print the distances from node 1 to node n, and not randomly, so don’t use a unordered_map.