Reverse `nums` **in-place** and return the mutated array. Variant **#9**.
Example 1
Input: nums = [9,10,11,12,13,14,15,16,17,18,19,20]
Output: [20,19,18,17,16,15,14,13,12,11,10,9]
Constraints
Acceptance: 71% · Topics: array, two-pointers
← All practice problems