1470. Shuffle the Array
Easy
Given the array nums
consisting of 2n
elements in the form [x1,x2,...,xn,y1,y2,...,yn]
.
Return the array in the form [x1,y1,x2,y2,...,xn,yn]
.
Example 1:
Example 2:
Example 3:
Constraints:
1 <= n <= 500
nums.length == 2n
1 <= nums[i] <= 10^3
解題
Previous1466. Reorder Routes to Make All Paths Lead to the City ZeroNext1472. Design Browser History
Last updated