EasyArray· 75% acceptance
#135

Reverse Array 30

Easy

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

Example 1

Input: nums = [30,31,32]

Output: [32,31,30]

Constraints

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

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

reverseArray

← All practice problems