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.
This comment is hidden because it contains spoiler information about the solution
There is an error in this test. Something was deppreciated.
Hi,
I am not sure if your code is right or wrong. But having just solved this Kata in Ruby, you need to write your own test cases in order to pass the kata, so it may be worth checking out the test cases and updating them.
Cheers
An array of length 2 has indexes 0 and 1, so if you do
i<= arr1.length
, it will try to accessarr1[2]
and you'll get an out of bounds error.This comment is hidden because it contains spoiler information about the solution