Dijkstra's Algorithm Shortest Path on Weighted Graphs

I was solving the questions on geeksforgeeks .
here is the link to that que :
https://practice.geeksforgeeks.org/problems/implementing-dijkstra-set-1-adjacency-matrix/1/?track=SPC-Graph&batchId=155

On the test Case ,it is giving correct ans with my code.

But when i am submitting it , ans is coming wrong in some test case

Here is the link to my code :

Please help , I need your help.

@Kumarrituranjan2056 send me your full code and send the correct question link, the link you have sent here is not opening.

It got resolved .I have given feedback very nice also but u could have gone to a link of the que.

1 Like