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.
From the top-voted code solution: by replacing the "each" with another "map", then we don't need to store the result in a temporary variable, which reads much simpler.
Hi, I'd recommend you first identify which test is failing, then comment out the other tests and add
puts
statements at different points to help you to understand what is happening in that test scenario. Hopefully, you should then be able to see what the issue is.