Complete the code to split the array into two halves.
int mid = array.Length [1] 2;
We divide the length by 2 to find the middle index for splitting.
Complete the code to recursively sort the left half of the array.
Sort(array, 0, [1]);
We sort from index 0 to mid to handle the left half.
Fix the error in the merge function call to combine two sorted halves.
Merge(array, 0, [1], array.Length - 1);
The middle index marks the end of the left half and start of the right half for merging.
Fill both blanks to complete the base case check in the recursive function.
if (start [1] end) return; // base case to stop recursion
The recursion stops when the start index is greater than or equal to the end index.
Fill all three blanks to complete the recursive divide and conquer calls.
Sort(array, start, [1]); Sort(array, [2], end); Merge(array, start, [3], end);
We sort left half from start to mid, right half from mid+1 to end, then merge using mid.
