If i have two arrays ,
A= [2,3,4] and B=[8,9,10].
How can i merge this two arrays.
Solution C=[2,3,4,8,9,10]
Please guide.
If i have two arrays ,
A= [2,3,4] and B=[8,9,10].
How can i merge this two arrays.
Solution C=[2,3,4,8,9,10]
Please guide.
If you mean merge and preserve some sort of order, then iterate over A & B simultaneously copying the next relevant(depending on your ordering criteria) value in to the next slot in the new array.