Ad
  • Custom User Avatar

    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.

  • Custom User Avatar

    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.