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.
Looks like the ruby test cases were rescuing exceptions and returning -1. Also the actual and expected were reversed to add to the confusion.
I've fixed these cases so hopefully it should be easier to debug now.
Nice Kata! Will just leave couple of useful references to algorithms:
http://www.siafoo.net/algorithm/11
https://en.wikipedia.org/wiki/Cycle_detection#Tortoise_and_hare