Ad
  • Default User Avatar

    @codejosh this is the satisfaction rate, not the completion rate. the completion rate for this one seems to be about 19% (407 total times completed / 2128 warriors trained)

  • Default User Avatar

    Is it really that obscure if you can Google it in a few minutes, and the completion rate is 82%?

  • Default User Avatar

    Hey @Falafel_ ; thanks for your effort on contributing kata to Codewars, and happy new year!

    I don't work in JS so I can't help you, but my best advice is:

    1. Send your kata back to draft ASAP (while it is in Beta people will downvote it for not having random tests).

    2. Go on the Codewars Discord - there is a channel called #help-author which is designed for this exact purpose. You can ask a JS user to view your draft (just send the link) and/or ask for general advice on making JS random tests.

    As mentioned, as per 1, when your kata is in Beta it is expected to be "ready" so I highly recommend unpublishing to avoid the downvotes; there's no rush, just republish once you've learnt about how to do random tests in JS :)

    edit - also, while in draft, you can mess around with the random tests more easily without affecting submitted solutions. One simple tip to learn how to use them is find a high-quality kata you have already solved, and read their Test Cases (once you have solved the kata, the Tests are visible in the solutions page, so you can learn from there).

  • Custom User Avatar

    Your function should return a list. Not a kata issue.

    Python Completions 18231

    See the sample tests:

    test.assert_equals(sorted(permutations('a')), ['a']);
    

    The result is sorted and that's what the error is about.