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 already achieved to fix the problem. thank you for support,that was really helpfull.
With console.log as you do in your IDE too, Check this: https://docs.codewars.com/training/troubleshooting#error-messages-and-printing-your-inputoutput
Ok, but might you explain to me how to print here? because for the different tests, I use an IDE and use console.log to see the result of my function. Thank you for the answer
Start with printing the input, the first value there is what your function returned.
I getting a problem when press "attempt", but not when I press "test". The problem that the console print is the next:
expected '["a","b",null,"c","d",1,false,1,3,1,9,{},9,0,0,0,0,0,0,0,0,0,0,0]'
to equal '["a","b",null,"c","d",1,false,1,3,[],1,9,{},9,0,0,0,0,0,0,0,0,0,0]'
And I don't understand two things:
First, why it appears [] in the equal if in the first array there isn't? and second, What happens with one zero, why it disappears? Exactly, there are eleven zero's in the initial array, but in the result of the function, there are ten zero's. how the missing zero may be changing like an empty array? please help me with that because I don´t understand what happened here
printed lots of stuff out, and yes that does seem to be the problem, do you know how I would go about fixing this?? seems strange and I can't understand why it doesnt work when there are two zeros in a row.
Without the input value it's hard to guess, but maybe it's related to having two zeros in a row?
This comment is hidden because it contains spoiler information about the solution
i think stoi only converts string to int (aka 32 bit numbers)