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.
Wow, my long winded solution is so unnessary! As soon as I saw this it was so obvious!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Something weird is going on. Using the example expected output in my unsubmitted test cases passes, but when I submit my final answer I get the following error:
Test::Error: Expected: [{:id=>2}, {:id=>1}], instead got: [{:id=>1}, {:id=>2}]
The expectation is incorrect, the expectatition should read:
[{:id=>1}, {:id=>2}]
and rather than[{:id=>2}, {:id=>1}]