Not Getting Right Output


plzzz…check the code

Hey there is one correction in cycle_present function
i.e
else if( !visited[e] ){
bool x= cycle_Present( e , s , visited );
if(x)return true;
}
Please re-watch the content if you aren’t able to understand this.

1 Like

i got it man … i have made a mistake
I am returning false if cycle is not present

1 Like

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.

1 Like