Use of vectors instead of temp array

Can we use vector instead of temp array in merge function? If yes, then how?

Yes we can use vector. Just simple make a vector and store the elements in it. Do you know how to use a vector/ what is a vector?
vector a;
a.push_back();
are a few command which would be beneficial

1 Like

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.