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.
Good job
Same here lol I am digging through the comments to find out
2nd fail test said that, there instead of array [0,0] function have to be []
You should check first if the input is null before checking is length
use the backtics
for best practice
you might think about, if the input have spaces in front. in that case this will throw ""
This comment is hidden because it contains spoiler information about the solution
I believe that test case expected an empty array to be returned, whereas here that'd be [0, 0], no?
I'll double-check though, I've realized my accepted solution is suspicious anyway.
Where do you think it should fail?
Please, put spoiler tag next time you post your code.
This comment is hidden because it contains spoiler information about the solution
Very nicely done.
nice
Ahh yeah my mistake i didn see right now i understad it , i thoght we need the sum of positiv and negativ.
Thank you for your time.
Because it's count of positives, not sum of positives.
Loading more items...