Facebook | screening | find pairs a[i] + b[j] = a[j] + b[i], i >= j
Anonymous User
549
Feb 03, 2022
Feb 04, 2022
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)

