Ruby - Enumerable - collect

  • + 1 comment

    I really don't know what to do here.

    I've found 3+ ways to solve this on my computer. But when I run it on Hackerrank, it doesn't work for different reasons. Some of those reasons are spelled out in the output others are obfuscated.

    I decided to copy and paste someone elses work to see if I could reverse engineer what they did and figure out what I was doing wrong. My problem now is that the work I copied works on Hackerrank, but it throws errors on my computer. Like I said, I don't really know what to do from here.