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.
Same here lol I am digging through the comments to find out
absolute winner!
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
Wow.... regex
I just hope that whoever voted this as "Best Practices" did it only for the memes
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?
i also came across this thought and totally guessing, i think it is checking for empty string, since if it is that way it is going to be false
i didn't uderstand the second part of the OR, like, if you transform the two strings to lowerCase they will always be equal, right?
Cool solution!
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...