Reverse `nums` **in-place** and return the mutated array. Variant **#20**.
Example 1
Input: nums = [20,21,22,23,24,25,26,27]
Output: [27,26,25,24,23,22,21,20]
Constraints
Acceptance: 65% · Topics: array, two-pointers
← All practice problems