text: Naive solution to find if there is a pair in A [ 0. . N - 1 ] with given sum .
code: #include <stdio.h> NEW_LINE int isPairSum ( int A [ ] , int N , int X ) { for ( int i = 0 ; i < N ; i ++ ) { for ( int j = 0 ; j < N ; j ++ ) {