In challenges of graph series ,in question number 2
i am enable to pass second test case.
i donot know where am doing wrong.
Can you help me out.
Problem in a graph question
Sir, I have saved the code on my IDE.
I need the link to your saved code to view it.
Hi @vg5823967
If there is no solution, print -1.
You are printing 0 for no solution. Rest of your code is absolutely fine. Cheers!
I have made corrections, We shall get through with both the test cases now.!
You may close the thread if you feel your doubt has been resolved. Please give a rating 
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.