Ahh, didn't look through it that closely ::blush::
dlorde's right, there is a flaw in your merge method. Do what he says and see if you can figure out what it is :)
Type: Posts; User: helloworld922
Ahh, didn't look through it that closely ::blush::
dlorde's right, there is a flaw in your merge method. Do what he says and see if you can figure out what it is :)
Your MergeSort method never returns the sorted list.
public static int[] mergeSort(int[] data) {
if (data.length > 1) {
int mid = data.length / 2;
...