EasyArray· 73% acceptance
#150

Reverse Array 45

Easy

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

Example 1

Input: nums = [45,46,47]

Output: [47,46,45]

Constraints

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

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

reverseArray

← All practice problems