Search:

Type: Posts; User: miguel.pinr

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    5,264

    I have seen that code before, and it's not what i...

    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...
  2. Replies
    3
    Views
    5,264

    k-permutations

    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...
Results 1 to 2 of 2