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 corrected the method and it worked.
I really didn't understand the description.
Considering that I'm not the only one like that, I need to clarify the instructions a bit at this point.
I see that there are already threads with this question.
But the instructions for this task are really misleading.
The array was: {-1, 1, 0, -1, 1, 0, -1, 1, 0, 0} - expected:<2> but was:<0>
I found the array where I have problems.
I think it is this array.
that's not a crash though is it, but wrong answer?
presumably the last one
also note that you have a return statement above where you print out an array, if that triggers you won't see that array which is the same situation as before
@natan -
Is it possible to understand on which array exactly my method crashes?
I printed all the arrays in the test group. However, looking with my eyes, I can't understand where I made a mistake, everything seems to be correct.
Thanks. Indeed, I forgot to remove 1 line of code.
that's not what the array was, that's what you printed. take greater care in what you print to see what the array was.
The array was: {16, 102, 21, 130, -20735, 7422, 88, 16, 8}: expected +0
Why should there be 0 here? Can anyone explain?
I have - expected:<0> but was:<-1> (java)
I use Google translator. I don't know what I'm looking for here. I came here to figure it out lol