Skip to content

Commit be4fc98

Browse files
committed
fix
1 parent 8f3fe5b commit be4fc98

File tree

1 file changed

+7
-8
lines changed
  • lesson_11/arrays_java/arrays_app/src/main/java/com/codedifferently/lesson11

1 file changed

+7
-8
lines changed

lesson_11/arrays_java/arrays_app/src/main/java/com/codedifferently/lesson11/Lesson11.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@ public class Lesson11 {
99
* Provide the solution to LeetCode 1929 here:
1010
* https://leetcode.com/problems/concatenation-of-array
1111
*/
12-
public int[] getConcatenation(int[] nums) {
13-
int answer[] = new int[2 * nums.length];
14-
for (int i = 0; i < nums.length; i++) {
15-
answer[i] = nums[i];
16-
answer[i + nums.length] = nums[i];
17-
}
18-
return answer;
12+
public int[] getConcatenation(int[] nums) {
13+
int answer[] = new int[2 * nums.length];
14+
for (int i = 0; i < nums.length; i++) {
15+
answer[i] = nums[i];
16+
answer[i + nums.length] = nums[i];
1917
}
20-
18+
return answer;
19+
}
2120

2221
/**
2322
* Provide the solution to LeetCode 2942 here:

0 commit comments

Comments
 (0)