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.
This comment is hidden because it contains spoiler information about the solution
I got 38 honor for this... I don't think I should get this much for this question.
really, it is THE problem you have, because you are not permitted to change the function name, which is
permutations
. The function was named to match the module on purpose. the only reason you don't get aNameError: name 'permutations' is not defined
error on Codewars is because you've importedpermutations
... but you have to figure a way to make your code work under these circumstances. I guarantee you will never pass unless you name the function as it is given to you in the kata to begin with. The test code is not calling a function calledsolution
.the function name is not
solution
, it ispermutations
You mean, a small thing with a touchscreen?
You are using their app.
study other people's code, set up tests to run them and compare what works and why
Can't be changed.
from the description:
... in descending order.
The description has an example where one of the steps is sorting the array.