SHORTEST SINGLE SOURCE PATH

INCORRECT ANS

Hey @mverma_be19 it’s running fine. showing correct output.

But the shortest distance of node 5 from source node 0 is 3

If you have coded this while watching Bhaiya’s video. Then bhaiya forgot to add a branch 0-3 see it at 11:00 time stamp. Due to which what is it creating is that
0
1
2
3
4
5
Level by level.

Oh right thanks ! Marked as resolved.

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.