Ad
  • Default User Avatar

    It took me a while to understand what was expected as well, but the detailed example in the description should be enough.
    Remember that indexes are 1-based there while they are 0-based in most programming languages.

    I'm closing as this is not an issue with the kata, but I'll agree that the description is a bit convoluted.

  • Custom User Avatar

    Is it one way of saying that you have to rearrange to different permutation of the array and return one of those arrangement randomly?
    I already made this kind of function but failed. So I thought they that those friend are in circle while giving gifts and the index will move to specific number. I'm done already with this but failed. The instruction is confusing. Can somebody explain simply?