DIJKSTRA ALGORITHM


bhaiya code check karna ek baar ,
output ni aari sahi.

Hello @CODER_JATIN you have doubt in which code?
the code which you have shared is of just some while loop taking input and then printing:
please confirm
though the code which you have is that is the only code which you want to get correct then it is correct it just you are not printing any spac in between.

ye h code

@CODER_JATIN i think your code is correct it is producing the same result as of mine.
but there is small difference and that is just because of you are using unordered map and i have used ordered map.
could you please tell what is the problem that you are facing?

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.