am not able to code it will u plzz code it i did not code x and z concept
Am not able to code it
@Aditya-Kushwaha-914550392281281
You can see the code here https://www.geeksforgeeks.org/detect-loop-in-a-linked-list/
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.
https://ide.codingblocks.com/s/276220 bhaiya what is wrong in my code of rempve cycle it is not giving output
you can simply do this.
void removecycle(node * head , node * meetpoint) {
node * a = head ;
node * prev = NULL ;
while (a->next != meetpoint) {
a = a->next;
}
a->next = NULL ;
}
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.