EasyArray· 64% acceptance
#124

Reverse Array 19

Easy

Reverse `nums` **in-place** and return the mutated array. Variant **#19**.

Example 1

Input: nums = [19,20,21,22,23,24,25]

Output: [25,24,23,22,21,20,19]

Constraints

  • 1 <= nums.length <= 10^4

Acceptance: 64% · Topics: array, two-pointers

reverseArray

← All practice problems