2014-02-28 HW

posted Feb 27, 2014, 10:08 PM by Samuel Konstantinovich   [ updated Feb 27, 2014, 10:08 PM ]
Write a merge function:  

precondition:  both a, and b are sorted.
postcondition: the resulting array contains all of the elements of a and b, sorted.
int[] merge(int[]a, int[]b){  }

If you merged : {1,12,13,42,50} and {3, 9,14,100}
The result is: {1,3,9,12,13,14,52,50,100}

You are JUST writing merge, not the whole mergesort.
You NEED to have this completed by Monday,