Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2020
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. def arraySum(inputs, tests):
  2.     inputHash = set()
  3.     for input in inputs:
  4.         inputHash.add(input)
  5.     for num in tests:
  6.         for inputNum in inputs:
  7.             if num - inputNum in inputHash:
  8.                 return True
  9.     return False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement