Write pairs_with_sum(nums, target) returning a sorted list of unique pairs [a, b] with a ≤ b and a + b = target (using values from the list, each position at most once).
pairs_with_sum([1, 5, 7, -1, 5], 6) → [[-1, 7], [1, 5]]
pairs_with_sum([3, 3], 6) → [[3, 3]]
Submit runs 4 tests, including hidden edge cases.
Run your code to see the output here.