Question: Given an array of ints length 3, return a new array with the elements in reverse order, so (1, 2, 3) becomes (3, 2, 1).
Given an array of ints length 3, return a new array with the elements in reverse order, so (1, 2, 3) becomes (3, 2, 1). reverse3 ([1, 2, 3]) [3, 2, 1] reverse3(15, 11, 9])9, 11, reverse3(17, e, 0]) [e, e, 7] 5]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
