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