Sir doubt in this question

sir the code is having is wrong output
why??

here is the code what wrong in the logic???

hey @tejasddongare only make the graph undirected instead of directed graph

Thanks Sir code is working

1 Like