You are viewing a single comment's thread. Return to all comments →
Why does the code fails if you put visited outside of the function? I can't seem to understand why it would make any difference at all
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 does the code fails if you put visited outside of the function? I can't seem to understand why it would make any difference at all