Given an array a of integers, find the index of values that satisfy a + b = c + d
Answers
Answered by
0
Step-by-step explanation:
Given an array of distinct integers, find if there are two pairs (a, b) and (c, d) such that a+b = c+d, and a, b, c and d are ... We use sum as key and pair as value in hash table. ... pair ...
Similar questions