Easy
,Array
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:
n
<= 500nums.length
== 2n
nums[i]
<= 103Marsgoat Feb 6, 2023
Ron Chen Feb 6, 2023
Yen-Chi ChenMon, Feb 6, 2023
Yen-Chi ChenMon, Feb 6, 2023