We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 18beb48 + 6438ef7 commit 1712d47Copy full SHA for 1712d47
Leetcode/concatenation-of-array#33.java
@@ -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