Ad
  • Default User Avatar

    What is required in this Kata is to enumerate all combinations of n numbers

    and

    two List objects: [0, 1] and [1, 0]

    In finding out the combinations, order doesn't matter, so [0, 1] and [1, 0] would be considered as same combination as they consist of same elements. What you should use is permutations, where order does matters.