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.
When I sumited, I passed all random case except 2 case.
one case. isMerge('codewars', 'code', 'wasr')
two case. isMerge('codewars', 'cwdr', 'oeas')
I dont' know why not passed!
So I guessed... one case is becasue 'r'.
two case is 'w'....? 'cdwr' return true, but 'cwdr' return false?
I understaned to make checker function.
My code check second, third parameter char as same as first parameter. (Character count)
This comment is hidden because it contains spoiler information about the solution
--Should not modify the original array--
I don't understand this.
I did not modify parameter array.
check WUBWUB twice in test case.
Write console.log(parameter) in function.
you will know why that.
what is only argument?
1 parameter mean?
I passed 9 test in 10 test.
last test, only argument expected : 5, instead of : undefined.
hint please..