Adak, on 11 February 2013 - 10:34 AM, said:
Sandals, do you want to:
*merge AND sort the two arrays into one array, at the same time, using a merge sort algorithm
or
*merge the array values first, THEN sort the array values, after they all get into one array.
In the first case, you would normally use a third array:
But it CAN be done, it's just a bit more difficult to do it the first way, with only two arrays.
What do you need to do here?
*merge AND sort the two arrays into one array, at the same time, using a merge sort algorithm
or
*merge the array values first, THEN sort the array values, after they all get into one array.
In the first case, you would normally use a third array:
array 1\
\
-> array 3
/
array 2/
But it CAN be done, it's just a bit more difficult to do it the first way, with only two arrays.
What do you need to do here?
I want to merge the two arrays and then sort them. I can only use the two arrays which is why array_1 has 18 elements and only 13 can be inputted, so that the other 5 elements from array_2 can be placed inside the first array.

New Topic/Question
Reply




MultiQuote


|