Reverse `nums` **in-place** and return the mutated array. Variant **#40**.
Example 1
Input: nums = [40,41,42,43,44,45,46,47,48,49,50,51,52]
Output: [52,51,50,49,48,47,46,45,44,43,42,41,40]
Constraints
Acceptance: 68% · Topics: array, two-pointers
← All practice problems