Ad
  • Custom User Avatar

    This was a very interesting kata. I liked it. for Js, pay close attention to the second argument, if and when stuck.

  • Custom User Avatar

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

  • Custom User Avatar

    Complete the function scramble(str1, str2) that returns true if a portion of str1 characters can be rearranged to match str2, otherwise returns false.

    Rearranged means you have to work with what you have, not create another thing. So you can't rearrange alas to form salas, but the opposite is possible. The kata works fine for javascript (remember to mention the language when asking for something).

  • Custom User Avatar

    Could the kata be revised with more detail. From intercation with it, I have close to 4 solutions that passed the first test cases but would give me random passes on submission. I believe this is due to the fact that, 'silently', the code should work under the assumption that a letter in str1 should not be used twice. This would be a very concise addition, moving forward.

  • Custom User Avatar

    first attempt at this, hacks are welcome