Search
⌘K

Leetcode 1470. Shuffle the Array

Given an array nums of length 2n structured as [x1,...,xn,y1,...,yn], return a new array that interleaves the two halves into [x1,y1,x2,y2,...,xn,yn].


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.