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.
I encountered the same problem (with the very obvious answer in Ruby), and hadn't a clue how to fix (circumvent) the problem in the test cases. While debugging, I put a
p string
as the first line in the method... and got the solution accepted. You might want to try that.I got that also. I don't how I can fix that.
Please fix!
depends how the tests are written, sometimes the same object is passed into your solution and a validating solution. So if you modify the array the validting solution will get your modified version and will return a different result than expected.
it's good to stay safe and make a copy of any objects passed in usually :)
make sure you're not modifying any parameters, make a copy of the map array and use that.