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 anytwosum 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 On 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
