/* NOTE: The file ArrayUtil.java contains some functions that may be useful * in testing your answers. */ /** HW #2, Problem #2. */ class Arrays { // a. /** A new array consisting of the elements of A followed by the * the elements of B. */ static int[] catenate(int[] A, int[] B) { /* *Replace this body with the solution. */ return null; } // b. /** The array formed by removing LEN items from A, * beginning with item #START. */ static int[] remove (int[] A, int start, int len) { /* *Replace this body with the solution. */ return null; } // c. /** The array of arrays formed by breaking up A into * maximal ascending lists, without reordering. * For example, if A is {1, 3, 7, 5, 4, 6, 9, 10}, then * returns the three-element array * {{1, 3, 7}, {5}, {4, 6, 9, 10}}. */ static int[][] naturalRuns (int[] A) { /* *Replace this body with the solution. */ return null; } }