...

/

Exercise 5: Retrieve and Recombine Elements of an Array

Exercise 5: Retrieve and Recombine Elements of an Array

Make a new array out of an existing one by combining certain elements of the array.

Problem statement

You’re given the following array:

array = [1, 2, 3, 4,
...