Check if my code is correct and how to give input for a linked list with loop as I am not able to check if my removeLoop function is working properly.
Floyd Cycle Detection and removal - Linked list
@anishanand3733 for making a loop you can randomly assign next of last node to some node in the linked list.
like last_node->next = some_random_node.
@anishanand3733 If you have any furthur query you can ask otherwise please mark this doubt as resolved.
Is removeLoop function correct??