Implementing Dijstra with adj matrix doubt


I am missing some test cases, in this can you pls tell me what is the fault in this code.

Hey,you have added a wrong condition in your code.I have comment it out.Also,first loop should run till n-1 only.

can’t find your comment

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.