Wednesday, April 13, 2011

Merge Array


Two sorted arrays A[X] and B[Y+X]. in B array contains Y sorted elements and B can accommodate A[] X elements.
W.A.P to Merge two arrays and store resultant in B[] array.



Solution:
Merge A and B from back to front

No comments: