I have seen that code before, and it's not what i need, the problem with it is that you generate all nPk permutations with n=k, and then you only print the first k numbers of the array, and so you...
Type: Posts; User: miguel.pinr
I have seen that code before, and it's not what i need, the problem with it is that you generate all nPk permutations with n=k, and then you only print the first k numbers of the array, and so you...
Hey,
I'm having some trouble in finding a solution for this problem. Which is:
I need a function that given an array with a number of elements n, and a positive integer k <= n, returns the next...