EasyArray· 70% acceptance
#130

Reverse Array 25

Easy

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

Example 1

Input: nums = [25,26,27,28,29,30,31,32,33,34,35,36,37]

Output: [37,36,35,34,33,32,31,30,29,28,27,26,25]

Constraints

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

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

reverseArray

← All practice problems