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.
OP solved it, closing
Your solution fails one of the sample tests, and you can see sample tests. It crashes on this one:
It's difficult to tell exactly without seeing your code, but it looks like an out-of-bounds read - most probably reading elements out of bounds of a vector, or something like this.
See @hobosky's comment.
Maybe it was related to that?
Your solution seems to pass, so I believe you found your mistake?
And that's what the error message is telling you it's wrong.
Get rid of those global variables.
There are no error in the kata. Sorry but it's up to you to correct your code. Follow @hobovsky's advice.
Does your code work when you run two tests in a row, in one run of your testing program?
You should say your language and what was the input...
Anyway not a kata issue, there are no errors in the tests.