+ 3
Why this merge sort isnt working? Whats the problem? please state the changes
4 odpowiedzi
+ 1
mergeArray()
...
int i = li;
// int j = middle + i;
int j = middle + 1; // +number one, not +variable i
+ 2
But sir
I want to sort list without using these:-
java.util.Arrays; & java.util.ArrayList;
Understanding the concepts of different types of sorting algorithms
+ 2
Thanks zemiak sir😢
+ 1
I advise you to do first
import java.util.Arrays;
Then do Arrays.sort();
Easy, doesn't you?