sample input is getting correct ans but test cases are not
ide: https://ide.codingblocks.com/s/202183
Dijkastra algo - graph
Hi @Vishal123, In question it is mentioned that u have to print in increasing order of their labels. since in map the indexing is random thus u are not achieving it . when you are printing just replace your for loop as for(int i=1;i<=n;i++)
here i have corrected your code : https://ide.codingblocks.com/s/202501
In case of any doubt feel free to ask 
mark your doubt as resolved if you got the answer
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.