return true if X + Y = Z exist within S, otherwise false (Java8)
Anonymous User
36

Given:

S = [2, 1, 3, 4, 7, 5]
Z = 8

Create a function that will return true if numbers X and Y exist within S such that X + Y = Z, return false otherwise.

Comments (2)