Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Expected and actual values are flipped.
What if there are multiple possible answers?
Edit: Even the first test case has multiple possible answers, and yet there are no specifications on which one should be returned.
When I encountered this puzzle, I suspected the goal was to find a cycle in a linked-list. This problem involves graphs -- which is definitely more challenging.
I think you should strongly consider adding "graph" either in the title, the description or both.