data_structures.arrays.pairs_with_given_sum¶
Given an array of integers and an integer req_sum, find the number of pairs of array elements whose sum is equal to req_sum.
https://practice.geeksforgeeks.org/problems/count-pairs-with-given-sum5022/0
Functions¶
|
Return the no. of pairs with sum "sum" |