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.
Could be usefull to make more clear description.
Can you be more specific besides dumping a whole Wikipedia article which, again, doesn't say much about the topic at hand?
The argument list in the function
(p, n, x)
is incorrect(p, x, n)
is the actual ordermodulus '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
"Your Solution" lists the arguments in the wrong order; it should be
function decrypt(p, n, x) {}
.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.
This comment is hidden because it contains spoiler information about the solution
props for the test cases matt c. you're too kind
This comment is hidden because it contains spoiler information about the solution
I've added some random test cases to the kata, hope it helps! Please mark this issue as resolved if it is thanks! :)
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).