Raksha1906 / DS-Algo

Repository For beginners for Hacktoberfest 2020 and 2021
4 stars 70 forks source link

Added checkGoodPairsInArray.js #139

Open VamsiKrishna04 opened 2 years ago

VamsiKrishna04 commented 2 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.