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