Skip to content

Commit 3f8ff00

Browse files
chore: /gradlew :arrays_app:spotlessApply
1 parent 4a213d2 commit 3f8ff00

File tree

1 file changed

+3
-4
lines changed
  • lesson_11/arrays_java/arrays_app/src/main/java/com/codedifferently/lesson11

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@
33
import java.util.ArrayList;
44
import java.util.List;
55

6-
76
public class Lesson11 {
87

98
/**
109
* Provide the solution to LeetCode 1929 here:
1110
* https://leetcode.com/problems/concatenation-of-array
1211
*/
1312
public int[] getConcatenation(int[] nums) {
14-
int [] ans = new int[nums.length * 2];
13+
int[] ans = new int[nums.length * 2];
1514
System.arraycopy(nums, 0, ans, 0, nums.length);
1615
System.arraycopy(nums, 0, ans, nums.length, nums.length);
1716
return ans;
@@ -23,8 +22,8 @@ public int[] getConcatenation(int[] nums) {
2322
*/
2423
public List<Integer> findWordsContaining(String[] words, char x) {
2524
ArrayList<Integer> out = new ArrayList<>();
26-
for(int i = 0; i<words.length; i++){
27-
if (words[i].indexOf(x) != -1){
25+
for (int i = 0; i < words.length; i++) {
26+
if (words[i].indexOf(x) != -1) {
2827
out.add(i);
2928
}
3029
}

0 commit comments

Comments
 (0)