Skip to content

Commit 1712d47

Browse files
authored
Merge pull request #38 from Rahul-Bhati/master
#33 issue solution
2 parents 18beb48 + 6438ef7 commit 1712d47

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
+11
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)