Not using double pointer but still the easiest way C++


#1

void Solution::merge(vector &A, vector &B)
{
for(int i=0;i<B.size();i++)
A.push_back(B[i]);
sort(A.begin(),A.end());
}


#2

If they ask u without using Xtra space