EasyArray· 77% acceptance
#120

Reverse Array 15

Easy

Reverse `nums` **in-place** and return the mutated array. Variant **#15**.

Example 1

Input: nums = [15,16,17]

Output: [17,16,15]

Constraints

  • 1 <= nums.length <= 10^4

Acceptance: 77% · Topics: array, two-pointers

reverseArray

← All practice problems