Skip to content

Commit 22fa878

Browse files
committed
feat: adds implementation of leetcode 1929 and 2942 for homework11 by Yemi
1 parent b726523 commit 22fa878

File tree

1 file changed

+1
-9
lines changed
  • lesson_11/arrays_java/arrays_app/src/main/java/com/codedifferently/lesson11

1 file changed

+1
-9
lines changed

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@
44
import java.util.List;
55

66
public class Lesson11 {
7-
8-
/**
9-
* Implementation of the solution to LeetCode 1929 below:
10-
* https://leetcode.com/problems/concatenation-of-array
11-
*/
7+
128
public static int[] getConcatenation(int[] nums) {
139
int lenOriginalArray = nums.length;
1410
int[] concatenatedArrays = new int[lenOriginalArray * 2];
@@ -23,10 +19,6 @@ public static int[] getConcatenation(int[] nums) {
2319
return concatenatedArrays;
2420
}
2521

26-
/**
27-
* Implementation of the solution to LeetCode 2942 below:
28-
* https://leetcode.com/problems/find-words-containing-character/
29-
*/
3022
public List<Integer> findWordsContaining(String[] words, char x) {
3123
var indexList = new ArrayList<Integer>();
3224
int index = -1;

0 commit comments

Comments
 (0)