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.
For Java 7 and Java 8, the non-editable code is wrongly adding -1 as last node, if list has no cycle. Due to this some wrong submission will also work fine for all test-cases and one may assume that their code is fully correct.
Cookie support is required to access HackerRank
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 →
For Java 7 and Java 8, the non-editable code is wrongly adding -1 as last node, if list has no cycle. Due to this some wrong submission will also work fine for all test-cases and one may assume that their code is fully correct.