My teacher gave me a homework about how to Merge Sort two arrays in Pascal.
One of the arrays is named as N and sorted as ASCENDING..
Other array named as M and sorted as DESCENDING.
They are pre-defined and he wants me to Merge Sort these two arrays.
N [ 2, 4, 5, 8, 10 ]
M [ 9, 7, 6, 3, 1 ]
Merge Sort [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]
So how can I do that?
Can anyone explain me this Merge Sort algorithm by simple coding examples?