Checking array for sum

Question

Given a list of numbers, return whether any two sums to k. For example, given [10, 15, 3, 7] and k of 17, return true since 10 + 7 is 17.

Solution

Access restricted

Subscribe to premium account to see the solution.

Get premium now