Advertisement
Guest User

Untitled

a guest
Sep 18th, 2014
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. answer = False
  2. sort(A)
  3. for i=1 to n
  4. for j=1 to n
  5. found = BinarySearch(t-A[i]-A[j])
  6. if found!=-1
  7. answer = True
  8. return answer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement