0

Java Merge Sort

public static void sort(int[] a, int[] aux, int lo, int hi) { if (hi <= lo) return; int mid = (lo + hi) / 2; sort(a,aux, lo, mid); sort(a, aux, mid + 1, hi); merge(a, aux, lo, mid, hi); } What will happen , when hi >lo?

9th Mar 2020, 3:09 PM
Denis
Denis - avatar
1 Réponse
0
If(hi <= Lo) Return; If hi > Lo it makes the Rest of the Code
30th May 2020, 1:17 PM
Teresa