When dealing with large inputs, it's essential to find a more efficient approach. In this case, we can utilize a technique known as 'hashing'. def find_sum_pair ( array , target_sum ) : hash_table = { } for i in range ( len ( array ) ) : complement = target_sum - array [ i ] if complement in hash_table : return ( complement , array [ i ] ) hash_table [ array [ i ] ] = i return None In this approach, we initiate an empty hash table and then loop through the array. For each item, we compute its complement and check for its existence in the hash table. If it is present, we have identified a pair and return it. If not, we record the current element along with its index in the hash table to facilitate checks against subsequent elements. This technique lowers the time complexity to O(n), although it requires additional space (O(n) space complexity) for the hash table.