Rakuten Symphony network operations tooling may need to identify distinct combinations of metric values that match a specified threshold. Given an integer array and a target integer, return every unique pair of values whose sum equals the target.
A pair must use two different array positions, but duplicate values should not produce duplicate pairs. Represent each pair as a two-element list in ascending value order. Return pairs in the order they are first discovered during a left-to-right scan. If no pair exists, return an empty list.
Implement find_unique_pairs(nums, target).
nums, a list of integers, and target, an integer.[a, b] where a + b == target and a <= b.O(n).def find_unique_pairs(nums, target):