Posted on

Description

Submission

class Solution {
public:
    vector<int> shuffle(vector<int>& nums, int n) {
        vector<int> rets;
        for(int i = 0; i < n; ++i) {
            rets.push_back(nums[i]);
            rets.push_back(nums[i+n]);
        }
        return rets;
    }
};

Leave a Reply

Your email address will not be published. Required fields are marked *