Please review the typescript translation
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 a NameError: name 'permutations' is not defined error on Codewars is because you've imported permutations ... 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 called solution.
NameError: name 'permutations' is not defined
actually thats not the problem i changed it to solution because i used permutations from itertools...
but it prints solution diffrent than whats suppose to be printed... i tried it on my pycharm and it worked...
the function name is not solution, it is permutations
This comment is hidden because it contains spoiler information about the solution
You mean, a small thing with a touchscreen?
i meant for a mobile
You are using their app.
maybe its better if you put all the companants in an array...
OK, fixed, thanks!
Yes, C language. Comment on line 4
01 #include <stdlib.h>
03 /* Note:
04 should also save the length of the parst sums in <len>
07 unsigned long long *parts_sums(size_t *len, const unsigned long long *ls, size_t n)
09 *len = 0;
10 return NULL;