Ad
  • Custom User Avatar

    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)

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    --Should not modify the original array--

    I don't understand this.
    I did not modify parameter array.

  • Custom User Avatar

    check WUBWUB twice in test case.
    Write console.log(parameter) in function.
    you will know why that.

  • Default User Avatar

    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..