Floyd cyle only 4-5 test case passed

check now ->


4-5 are test cases in which there’s no cycle. it was working fine when there wasn’t any cycle but wasn’t working fine when there is a cycle. have corrected it. now it’s passing all test cases.

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.