mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-07 17:56:02 +08:00
Add tests for recursive merge sort (#3510)
This commit is contained in:
@ -12,9 +12,9 @@ public class MergeSortRecursive {
|
||||
this.arr = arr;
|
||||
}
|
||||
|
||||
public void mergeSort() {
|
||||
public List<Integer> mergeSort() {
|
||||
List<Integer> arrSorted = merge(arr);
|
||||
System.out.println(arrSorted);
|
||||
return arrSorted;
|
||||
}
|
||||
|
||||
private static List<Integer> merge(List<Integer> arr) {
|
||||
|
Reference in New Issue
Block a user