Quiz

Question 1 of 4. 0 correct, 0 incorrect.

A list holds n prices and you have a budget. Find two different items whose prices add up to the budget exactly. Which approach does it in one pass, in O(n) time on average?