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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
0%3==0, could have done the 2 edge cases in one line.
Description could be clearer: Add the length of an array to a new copied version of the array and return it.(But keep the first array as is it!)
Yeah now I know that /i ignores case but thanks for the comment :p
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Deserves a 5th kyu at least...
for(;a<=b;a++){ Works as well, no need to declare a
Does this solution take in account capital letters? I'm not familiar with replace and regex so I may miss the point
You don't even need regex to be honest, I did it by mapping on the given array and checking on each entry if a predefined array of eyes for example includes the first position of the string.