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.
nice OOP :)
Sorry, my bad!:)
I just wanted to make sure that the last test case is valid.
Test.assertEquals(elevatorDistance([7,1,7,1]), 18);
If I understand the task correctly, the total number of floors covered should be 13, not 18.
Which Ruby version is being used in this Kata?
In the irb my solution passes all the tests, but in kata I get type errors:(
123 in kata is a Fixnum, whereas in ruby version I'm using it's a Integer.