EasyArray· 68% acceptance
#128

Reverse Array 23

Easy

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

Example 1

Input: nums = [23,24,25,26,27,28,29,30,31,32,33]

Output: [33,32,31,30,29,28,27,26,25,24,23]

Constraints

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

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

reverseArray

← All practice problems