You are viewing a single comment's thread. Return to all comments →
The simpler way just change the way you compare.Instead of node->data compare the node's addresses.Works!
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 →
The simpler way just change the way you compare.Instead of node->data compare the node's addresses.Works!