• Custom User Avatar

    Could be usefull to make more clear description.

  • Custom User Avatar

    Can you be more specific besides dumping a whole Wikipedia article which, again, doesn't say much about the topic at hand?

  • Custom User Avatar

    The argument list in the function (p, n, x) is incorrect

    (p, x, n) is the actual order

    modulus 'n' is the message 'x' and vice versa

    All the test cases pass once you replace them. This should be fixed, else it's a nice nice kata

  • Custom User Avatar

    "Your Solution" lists the arguments in the wrong order; it should be function decrypt(p, n, x) {}.

  • Custom User Avatar

    The order of arguments in the starting code and your expected solution is different. p, n, x is expected, p, x, n is available at the start.
    Leading to confusion on error like the issue below this.

  • Custom User Avatar

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

  • Custom User Avatar

    props for the test cases matt c. you're too kind

  • Custom User Avatar

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

  • Custom User Avatar

    I've added some random test cases to the kata, hope it helps! Please mark this issue as resolved if it is thanks! :)

  • Custom User Avatar

    Nice work, but it needs a lot more test cases (preferably some random ones).

    Otherwise it's easy to cheat by hardcoding the answer (see my solution).