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
Ruby: I'm passing the test cases, but when submitting I get this error:
remove_rotten': undefined method
each' for nil:NilClass (NoMethodError)from `.
I even get this error when using a for loop instead (for loop also works in test cases)
Hm, for once I actually had write-access on a kata written by another author. Added the conditions.
Instructions should mention all the conditions (e.g. what about floats? empty array etc)
// are used for comments in Ruby (instead of #)
method name of the test is incorrect (uses camel format instead of _)