Why this merge sort isnt working? Whats the problem? please state the changes | Sololearn: Learn to code for FREE!
+ 3

Why this merge sort isnt working? Whats the problem? please state the changes

https://code.sololearn.com/cz99BbOtaii0/?ref=app

6th May 2020, 2:43 PM
Abhay Kalsi
Abhay Kalsi - avatar
4 Answers
+ 1
mergeArray() ... int i = li; // int j = middle + i; int j = middle + 1; // +number one, not +variable i
7th May 2020, 12:31 AM
zemiak
+ 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
6th May 2020, 4:28 PM
Abhay Kalsi
Abhay Kalsi - avatar
+ 2
Thanks zemiak sir😢
7th May 2020, 5:14 AM
Abhay Kalsi
Abhay Kalsi - avatar
+ 1
I advise you to do first import java.util.Arrays; Then do Arrays.sort(); Easy, doesn't you?
6th May 2020, 3:53 PM
HEUBA BATOMEN Franck Duval
HEUBA BATOMEN Franck Duval - avatar