sir , like if use first method mention in this video that is :-
for(i=0;I<n;i++){
for(j=i+1;I<n;i++){
if(a[I]+a[j]==sum)
cout<<" ith and jth "
for this I wanted to know what is space complexity is it 0(n). because of that we consider two pointer method better??