reverse

Objective(s): Practice traversing an array and simple data processing.

Given array nums, return a version of the array that is reversed. For this, you will create a new array of the same size and fill it with elements from nums in the reversed order.|

How do you know this method needs to return a 1D array?

reverse({1, 2, 3}) -> {3, 2, 1}
reverse({1, 0, 7}) -> {7, 0, 1}

Type your solution        
Skills Practiced:
3.C
3.D
4.A
4.B
Copyright © StudyCS 2024 All rights reserved.