Reverse `nums` **in-place** and return the mutated array. Variant **#1**.
Example 1
Input: nums = [1,2,3,4]
Output: [4,3,2,1]
Constraints
Acceptance: 63% · Topics: array, two-pointers
← All practice problems