int* shuffle(int* nums, int numsSize, int n, int* returnSize){
int* a = (int*)malloc(sizeof(int)*numsSize);
int i;
int j = 0;
for(i=0;i<n;i++){
a[j]=nums[i];
j++;
a[j]=nums[i+n];
j++;
}
*returnSize = numsSize;
return a;
}
2020-11-05
最新推荐文章于 2022-03-30 20:45:08 发布