Skip to content

Commit 191f8dc

Browse files
committed
Runtime: 6 ms (Top 7.82%) | Memory: 50.1 MB (Top 50.44%)
1 parent 6677a76 commit 191f8dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
// Runtime: 6 ms (Top 7.82%) | Memory: 50.1 MB (Top 50.44%)
12
class Solution {
23
public int[] getConcatenation(int[] nums) {
34
int[] ans = new int[2 * nums.length];
45
for(int i = 0; i < nums.length; i++){
56
ans[i] = ans[i + nums.length] = nums[i];
67
}
7-
8+
89
return ans;
910
}
1011
}

0 commit comments

Comments
 (0)