since we are always using loop from 0 To V iterating everytime then suppose if output is 8,7,15,68,78.65 inplace of 0-5 then will the code work, from dry run I am not able to understand, According to me we are setting the problem in terms of adjacency list having node values from 0 to n, and all the data points also in the range 0 to N
Is this only vaild for graph data points in the range 0 to N
Hi Sachin. I didn’t get what exactly is ur doubt. can u share code where u are facing difficulty.
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.