Below is a Python implementation for the problem utilizing a hash table: def find_pair ( arr , target_sum ) : if len ( arr ) < 2 : return "Array needs at least two numbers" num_map = { } for num in array : potential_match = target_sum - num if potential_match in num_map : return [ potential_match , num ] else : num_map [ num ] = True return "No pair found" arr = [ 3 , 5 , 2 , - 4 , 8 , 11 ] target_sum = 7 print ( find_pair ( arr , target_sum ) ) # Output: [2, 5] In this illustration, we first verify if the array contains at least two elements. If it does not, we return a message indicating "Array needs at least two numbers". Next, we loop through the array, saving each number in a hash table. For every number, we compute the complement needed to achieve the specified sum and check if that number is present in our hash table. If we find a match, we return these two numbers as a pair. If we have examined all numbers without finding a pair that sums to the target, we return "No pair found".