Two line Solution in C++


#1
void Solution::merge(vector<int> &A, vector<int> &B) {
    for(auto x  : B) A.push_back(x);
    sort(A.begin(),A.end());
}