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.
Always note constraints. You can use two pointer trick as well but remember constraints can matter alot in the real world and you will definitely be penalized for not noticing that the list was only going to be max size 100.
Linked Lists: Detect a Cycle
You are viewing a single comment's thread. Return to all comments →
Always note constraints. You can use two pointer trick as well but remember constraints can matter alot in the real world and you will definitely be penalized for not noticing that the list was only going to be max size 100.