You are viewing a single comment's thread. Return to all comments →
just figured it out find() returns end if the element is not found so if the values returned is not the end then it is in the set
Linked Lists: Detect a Cycle
You are viewing a single comment's thread. Return to all comments →
just figured it out find() returns end if the element is not found so if the values returned is not the end then it is in the set