Kosaraju's algorithm

not printing all components

hello @guptashubham210a
what is expected output for the input that u have given

@aman212yadav
0,1,2
5,6,3
4

@guptashubham210a

image
:joy::joy::joy:

@aman212yadav
what happened?

@aman212yadav
got my errror

@guptashubham210a
u were calling dfs inside dfsprint function.:sweat_smile:

@aman212yadav
that was due to auto complete

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.