Circular linked list

it is showing runtime error

can u plz check whats wrong in it?

@chehakagrawal01 Check your loop in line 62. For a circular linked list it will run infinitely due to which it is giving run time error.

i have corrected it . but now also it is showing runtime error

please reply ???

plz answer the doubt

@chehakagrawal01 There are issues with your function removalofcycle. Please dry run and check it.
Please refer this https://ide.codingblocks.com/s/157873 to check how actually you should proceed with that function. I have commented the process flow.

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.