class Solution {
public:
vector<int> shuffle(vector<int>& nums, int n) {
vector<int> v;
for(int i = 0,j=n;i<n,j<2*n;i++,j++)
{
v.push_back(nums[i]);
v.push_back(nums[j]);
}
return v;
}
};
leetcode每日一题第121天
最新推荐文章于 2024-08-21 10:11:50 发布