You are viewing a single comment's thread. Return to all comments →
If the list has only one element, then doesn't that break your code? The reason is your second fast = fast->next would be on NULL->next.
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 →
If the list has only one element, then doesn't that break your code? The reason is your second fast = fast->next would be on NULL->next.