Interview question asked in Google
Anonymous User
1052

Choose four numbers from array such that sum of both two numbers are equal and return indices
ie. a+b=c+d and all a,b,c,d is in the array

ex: arr[8]={9,22,6,5,2,3,1,2}
o/p: {0,4,2,3}
explain 9+2=6+5
therefore return indices of 9,2,6,5

please guys give your approach?

Comments (7)