Vanshikapandey30 / HacktoberFest2021

33 stars 75 forks source link

Added checkGoodPairsInArray.js #122

Open VamsiKrishna04 opened 3 years ago

VamsiKrishna04 commented 3 years ago

Given an array A and a integer B. A pair(i,j) in the array is a good pair if i!=j and (A[i]+A[j]==B). Check if any good pair exist or not.