You are viewing a single comment's thread. Return to all comments →
My solution was to store the node in an array list, the node, not just node.data. Then check to see if the list already contains the node.
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 →
My solution was to store the node in an array list, the node, not just node.data. Then check to see if the list already contains the node.