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