Ad
  • Custom User Avatar

    Wow, my long winded solution is so unnessary! As soon as I saw this it was so obvious!

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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}]