Your question is Two Sum Pair Sum. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
While processing integer values associated with events in the Securonix platform, determine whether two distinct values produce a required target total. Given an unsorted array nums and an integer target, return the indices of two elements whose values sum to target.
Return the indices in ascending order. Each array position may be used at most once. The input is guaranteed to contain exactly one valid pair.
nums, a list of integers, and target, an integer.[i, j] containing two distinct zero-based indices where i < j and nums[i] + nums[j] == target.def find_pair_sum(nums, target):