Skip to content

Commit

Permalink
Time: 26 ms (16.22%), Space: 12.7 MB (62.63%) - LeetHub
Browse files Browse the repository at this point in the history
  • Loading branch information
mukul96 committed Nov 2, 2022
1 parent 1391de3 commit 526892a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions 1929-concatenation-of-array/1929-concatenation-of-array.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
class Solution {
public:
vector<int> getConcatenation(vector<int>& nums) {
int n = nums.size();
for(int i=0;i<n;i++){
nums.push_back(nums[i]);
}
return nums;
}
};

0 comments on commit 526892a

Please sign in to comment.