Fix Code Formatting
This commit is contained in:
parent
933ccb74ba
commit
b38f5ffc8e
Binary file not shown.
|
@ -20,12 +20,12 @@ public class RecursiveExercise {
|
|||
return null;
|
||||
if (ht.length == 1)
|
||||
return ht.clone();
|
||||
return append(new int[] { ht[ht.length - 1] },
|
||||
append(reverse(MyArrayUtil.tail(removeLast(ht.clone(), new int[ht.length - 1], 0))), new int[] { ht[0] }));
|
||||
return append(new int[] { ht[ht.length - 1] }, append(
|
||||
reverse(MyArrayUtil.tail(removeLast(ht.clone(), new int[ht.length - 1], 0))), new int[] { ht[0] }));
|
||||
}
|
||||
|
||||
// Remove the last element
|
||||
|
||||
|
||||
public static int[] removeLast(int[] ia1, int[] ia2, int i) {
|
||||
ia2[i] = ia1[i];
|
||||
if (i == ia2.length - 1)
|
||||
|
|
Loading…
Reference in New Issue