Here is my code:
It is working fine for the input test case but is giving run time error after submitting it. Can you tell me what is the problem.
Dijkstra Algorithm(Run time error)
@Codecracaker532, you are supposed to do this question using dijstras algo , also the output format is in increasing order of their label not distance . and note that labels start from 1 not 0
refer this for correct code :-
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.