Question: Write a function any _ two _ sum that takes two inputs: numbers : a list of integers total: an integer and returns True if

Write a function any_two_sum that takes two inputs:
numbers : a list of integers total: an integer
and returns True if any two integers in numbers sum to total and False otherwise. Your function must have a running time complexity of O(n), where n represents the length of numbers.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!