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