Cycle detection and removal

Failing just one test case with run error. please check

hello @anindya-gupta

image

interchange the position of these 2 conditions,
and use && in place of ||

Still the same error

@anindya-gupta
check ur updated code->

mistake-> in line no 31 , u were comparing data in place of pointer

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.