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.
I didn't mean to bash your solution or anything like that. Admittedly, I didn't notice the original constraint (i.e. that there are 100 nodes max), so at the time of writing my original post I wasn't sure where the number came from. Therefore, while I understand that now, you could have used a constant instead of a magic number to better convey the idea.
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 →
I didn't mean to bash your solution or anything like that. Admittedly, I didn't notice the original constraint (i.e. that there are 100 nodes max), so at the time of writing my original post I wasn't sure where the number came from. Therefore, while I understand that now, you could have used a constant instead of a magic number to better convey the idea.