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.
It would eventually crash. Though, the problem desctiption states that there's always a loop, so I didn't include the null check in the while loop.
BTW: I didn't know that solution passed... if was failing on the last test (but only here on codewars for some reason).
EDIT: Please ignore my misplaced comment :)
Thanks! I'll give it another go.
Something is wrong (C). I get correct values for FourNodesWithLoopSize3, NoTail and TinyLoop on my PC, but these tests fail here for some reason...