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.
Cycle Detection
Cycle Detection
Sort by
recency
|
1341 Discussions
|
Please Login in order to post a comment
This is not a well written problem. This is bad.
Hacky solution for the lulz:
in Typescript most of the required starting code is not there
The challenge is broken in JavaScript. The temp var. in the main function should be let instead of const, so it can be reassigned.