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
Solution:
Merge A and B from back to front
No comments:
Post a Comment