Reverse `nums` **in-place** and return the mutated array. Variant **#5**.
Example 1
Input: nums = [5,6,7,8,9,10,11,12]
Output: [12,11,10,9,8,7,6,5]
Constraints
Acceptance: 67% · Topics: array, two-pointers
← All practice problems