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.
This solution is great for small list, but not really good for use-cases with cycle and super large cycle.
Because catching up with slow, may have to visit all nodes in edge cycle cases. Hashing looks better solution though
Cycle Detection
You are viewing a single comment's thread. Return to all comments →
This solution is great for small list, but not really good for use-cases with cycle and super large cycle. Because catching up with slow, may have to visit all nodes in edge cycle cases. Hashing looks better solution though