How to solve the runtime error
Array -target sum pairs doubt
There are two errors in this, first you have to take the first loop i.e. of i to (i<N-1) or i=N-2.
and Second you have to first sort the array before matching the target.
How to solve the runtime error
There are two errors in this, first you have to take the first loop i.e. of i to (i<N-1) or i=N-2.
and Second you have to first sort the array before matching the target.