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
awesome!
not according to the Ruby style guide
Ruby lets you specify default values for a method's arguments---values that will be used if the caller doesn't pass them explicitly. This is done using the assignment operator
=
.Shouldn't certain inputs cause an infinite loop?
e.g.
[9, 9, 9]
-->[18, 18]
-->[1, 8, 1, 8]
-->[9, 9, 9]
--> etc.