Ad
  • Default User Avatar

    I don't see a test case that covers this stipulation in the description: "Both elements of the pair must be unique".

    A test like this would do it:

    SumOfTwoSumTargets(new[] { 4, 6, 10 }, 6, 11);

    Where if you picked {4, 4} you'd end up with the wrong sum.