Fiverr Search may need to determine whether two numeric ranking signals combine to a requested target score. Given an array of integers and a target integer, return True if two distinct elements sum exactly to the target, and return False otherwise.
Implement has_pair_with_sum(nums, target).
nums, a list of integers, and target, an integer.True when there are indices i and j such that i != j and nums[i] + nums[j] == target; otherwise return `False.def has_pair_with_sum(nums, target):