SHARE
TWEET

Untitled

a guest Feb 23rd, 2020 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top