We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Great comment! I was trying to keep track of values in the node but there's nothing stopping two distinct nodes from holding the same int data value. I couldn't comprehend what was wrong with my solution.
Cookie support is required to access HackerRank
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 →
Great comment! I was trying to keep track of values in the node but there's nothing stopping two distinct nodes from holding the same int data value. I couldn't comprehend what was wrong with my solution.