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.
oh I see, that makes scene. thanks for explaining.
I am checking the current value and previous value.
So you are returning the length of the modified array. And I am guessing because you hvae arr[cIndex-1] that cIndex is always 1 above cValue? if not you will just be comparing the same thing
This comment is hidden because it contains spoiler information about the solution
This is my solution I don't understand where is the problem . get two wrong answer ......
var re = /^(?=.{6,10}$)(?![_.-])[a-z]+[0-9]+$/;
for(var i = 0; i < arr.length; i++){
}
return true;
This comment is hidden because it contains spoiler information about the solution