NiCE CXone can analyze numeric interaction metrics and flag combinations that reach a required threshold. Given an integer array nums and an integer target, return every unique pair of values whose sum equals target.
Each pair must be returned as a two-element list [a, b], where a <= b. The result must contain no duplicate value pairs and must be ordered lexicographically. The same array element cannot be used twice, although equal values may form a pair when they occur at least twice. Return an empty list when no pair exists. Do not modify the input array.
nums, a list of integers, and target, an integer.a + b == target.def find_target_pairs(nums, target):