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,
...Make a new array out of an existing one by combining certain elements of the array.
You’re given the following array:
array = [1, 2, 3, 4,
...