If you are wondering what’s this thing? Then before continuing, please read this.
This problem was recently asked by Google.
Given a list of numbers and a number
k , return whether any two numbers from the list add up to
For example, given
[10, 15, 3, 7] and
17 , return true since
10 + 7 is
Bonus: Can you do this in one pass?
Solve. Discuss. Repeat. Happy Coding!