You are viewing a single comment's thread. Return to all comments →
Thanks for your solution. For C++ coders would be useful to check validity of fast->next->next pointer to avoid runtime error.
Seems like cookies are disabled on this browser, please enable them to open this website
Linked Lists: Detect a Cycle
You are viewing a single comment's thread. Return to all comments →
Thanks for your solution. For C++ coders would be useful to check validity of fast->next->next pointer to avoid runtime error.