What is the sequence of actions at a recursion?
问题 I am trying to understand a merge sort algorithm java code but I really stuck at the splitting phase. Full code is here: public class Main { public static void main(String[] args) { int[] intArray = { 20, 35, -15, 7, 55, 1, -22 }; mergeSort(intArray, 0, intArray.length); for (int i = 0; i < intArray.length; i++) { System.out.println(intArray[i]); } } // { 20, 35, -15, 7, 55, 1, -22 } public static void mergeSort(int[] input, int start, int end) { if (end - start < 2) { return; } int mid =