力扣:1929. 数组串联

力扣:1929. 数组串联_第1张图片

力扣:1929. 数组串联_第2张图片

1、按照题目要求做就行了,不难。

class Solution {
public:
    vector getConcatenation(vector& nums) {
        int thesize=nums.size();
        vectorans(2*thesize);
        for(int i=0;i

你可能感兴趣的:(力扣个人刷题题解,leetcode,算法,c++)