Practice ยท 6 of 6
Interleave two arrays
CHALLENGE
Difficulty: advanced+25 XP
Build a new array alternating elements from a and b (a first). When one runs out, append the remainder of the other. Implement process(int[] a, int[] b) โ note the two-parameter shape interleave.
Example: {1,2,3} and {9,9} โ {1,9,2,9,3}.
Press Submit to check your solution.
Back to lesson: Practice: Array lab: two passes, write indices, safe removal