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.
are you sure that the test cases you print are those you fail ? I suspect that you were printing the island after having mutated it. I tried your code and it always fails the random tests in the same fashion: the starting point contains some gold (
$
) and it seems like you fail to collect it, so you have an extra step that you should not have:I'm closing as the issue seems to be coming from your code. Feel free to present more information.
thanks for the quick fix
I've changed the order of the error message creation with the call to the user's function so it now shows the original value of the input.
Print the input at the start of your function, you're mutating it and that's why the error message seems weird.
...because other solutions don't have this problem, maybe there is something more specific
could you show me your solution, please?