1929.cpp (238B)
1 class Solution { 2 public: 3 vector<int> getConcatenation(vector<int> &nums) const { 4 const int n = size(nums); 5 6 for (int i = 0; i < n; i++) { 7 nums.push_back(nums[i]); 8 } 9 10 return nums; 11 } 12 };