You are viewing a single comment's thread. Return to all comments →
what if the second last node of the linked list is looped with the head or the second node (there can be many cases) then, it can't detect the loop.
Seems like cookies are disabled on this browser, please enable them to open this website
Cycle Detection
You are viewing a single comment's thread. Return to all comments →
what if the second last node of the linked list is looped with the head or the second node (there can be many cases) then, it can't detect the loop.