Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- answer = False
- sort(A)
- for i=1 to n
- for j=1 to n
- found = BinarySearch(t-A[i]-A[j])
- if found!=-1
- answer = True
- return answer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement