You are viewing a single comment's thread. Return to all comments →
Why is and used here and not or? in the while loop also I am getting an error using the slow pointer instead of the fast pointer, why?
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 →
Why is and used here and not or? in the while loop also I am getting an error using the slow pointer instead of the fast pointer, why?