Facebook | screening | find pairs a[i] + b[j] = a[j] + b[i], i >= j
Anonymous User
548

How would you solve this without brute force?

Find the number of pairs: a[i] + b[j] = a[j] + b[i], i >= j
a = []int{25,0}
b = []int{0,25}

Result = 3

Comments (3)