EasyArray· 78% acceptance
#138

Reverse Array 33

Easy

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

Example 1

Input: nums = [33,34,35,36,37,38]

Output: [38,37,36,35,34,33]

Constraints

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

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

reverseArray

← All practice problems