#13 - Reverse the array
Example 1
Input:
arr = [12, 5, 8, 23, 17, 9]
Output:
[9, 17, 23, 8, 5, 12]
Example 2
Input:
arr = [12, 50, 8]
Output:
[8, 50, 12]
Last updated
arr = [12, 5, 8, 23, 17, 9]
[9, 17, 23, 8, 5, 12]
Input:
arr = [12, 50, 8]
Output:
[8, 50, 12]
Last updated