Reverse `nums` **in-place** and return the mutated array. Variant **#17**.
Example 1
Input: nums = [17,18,19,20,21]
Output: [21,20,19,18,17]
Constraints
Acceptance: 62% · Topics: array, two-pointers
← All practice problems