You need to sign in or sign up before continuing.×
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.
Thanks, I'll add this now.
Yeah, storing a reference to all the instances isn't good because it means they can never be garbage collected. Not really an issue here, but if you wanted to write real code using a similar technique you might get into trouble over it.
The question of whether the input is an array or a range is still ambiguous.
This comment is hidden because it contains spoiler information about the solution
Can confirm this is still a problem. Wish somebody would fix this.
My mind is blown. Nice work.
I agree that this is still a problem.
Is there a reason to prefer class variables over constants?
No need for parens with your if statements. I don't think I've ever seen anybody use them in Ruby.