We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Ruby - Enumerable - collect
You are viewing a single comment's thread. Return to all comments →
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.