Skip to content

Commit 6438ef7

Browse files
authored
1 parent 2c7802c commit 6438ef7

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
class Solution {
2+
public int[] getConcatenation(int[] nums) {
3+
int n = nums.length;
4+
int ar[] = new int[n*2];
5+
for(int i=0;i<n;i++){
6+
ar[i] = nums[i] ;
7+
ar[n+i] = nums[i] ;
8+
}
9+
return ar;
10+
}
11+
}

0 commit comments

Comments
 (0)