Skip to content

Commit b0de93b

Browse files
alxkmalxkm
and
alxkm
authored
refactor: change packages (TheAlgorithms#5430)
* refactor: change package * refactor: fix name --------- Co-authored-by: alxkm <[email protected]>
1 parent f8ff6af commit b0de93b

File tree

10 files changed

+13
-13
lines changed

10 files changed

+13
-13
lines changed

src/main/java/com/thealgorithms/dynamicprogramming/FordFulkerson.java renamed to src/main/java/com/thealgorithms/datastructures/graphs/FordFulkerson.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.thealgorithms.dynamicprogramming;
1+
package com.thealgorithms.datastructures.graphs;
22

33
import java.util.LinkedList;
44
import java.util.Queue;

src/main/java/com/thealgorithms/dynamicprogramming/ShortestCommonSupersequenceLength.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
* supersequence of two given strings. The shortest supersequence is the smallest string
66
* that contains both given strings as subsequences.
77
*/
8-
final class ShortestCommonSuperSequenceLength {
9-
private ShortestCommonSuperSequenceLength() {
8+
final class ShortestCommonSupersequenceLength {
9+
private ShortestCommonSupersequenceLength() {
1010
}
1111

1212
/**

src/main/java/com/thealgorithms/others/EulersFunction.java renamed to src/main/java/com/thealgorithms/maths/EulersFunction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.thealgorithms.others;
1+
package com.thealgorithms.maths;
22

33
/**
44
* Utility class for computing

src/main/java/com/thealgorithms/others/SieveOfEratosthenes.java renamed to src/main/java/com/thealgorithms/maths/SieveOfEratosthenes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.thealgorithms.others;
1+
package com.thealgorithms.maths;
22

33
import java.util.Arrays;
44

src/main/java/com/thealgorithms/others/KMP.java renamed to src/main/java/com/thealgorithms/strings/KMP.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.thealgorithms.others;
1+
package com.thealgorithms.strings;
22

33
/**
44
* Implementation of Knuth–Morris–Pratt algorithm Usage: see the main function

src/main/java/com/thealgorithms/others/RabinKarp.java renamed to src/main/java/com/thealgorithms/strings/RabinKarp.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.thealgorithms.others;
1+
package com.thealgorithms.strings;
22

33
import java.util.Scanner;
44

src/test/java/com/thealgorithms/dynamicprogramming/FordFulkersonTest.java renamed to src/test/java/com/thealgorithms/datastructures/graphs/FordFulkersonTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.thealgorithms.dynamicprogramming;
1+
package com.thealgorithms.datastructures.graphs;
22

33
import static org.junit.jupiter.api.Assertions.assertEquals;
44

src/test/java/com/thealgorithms/dynamicprogramming/ShortestCommonSuperSequenceLengthTest.java renamed to src/test/java/com/thealgorithms/dynamicprogramming/ShortestCommonSupersequenceLengthTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
import org.junit.jupiter.params.ParameterizedTest;
66
import org.junit.jupiter.params.provider.CsvSource;
77

8-
public class ShortestCommonSuperSequenceLengthTest {
8+
public class ShortestCommonSupersequenceLengthTest {
99
@ParameterizedTest
1010
@CsvSource({"AGGTAB, GXTXAYB, 9", "ABC, ABC, 3", "ABC, DEF, 6", "'', ABC, 3", "ABCD, AB, 4", "ABC, BCD, 4", "A, B, 2"})
11-
void testShortestSuperSequence(String input1, String input2, int expected) {
12-
assertEquals(expected, ShortestCommonSuperSequenceLength.shortestSuperSequence(input1, input2));
11+
void testShortestSupersequence(String input1, String input2, int expected) {
12+
assertEquals(expected, ShortestCommonSupersequenceLength.shortestSuperSequence(input1, input2));
1313
}
1414
}

src/test/java/com/thealgorithms/others/EulersFunctionTest.java renamed to src/test/java/com/thealgorithms/maths/EulersFunctionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.thealgorithms.others;
1+
package com.thealgorithms.maths;
22

33
import static org.junit.jupiter.api.Assertions.assertEquals;
44
import static org.junit.jupiter.api.Assertions.assertThrows;

src/test/java/com/thealgorithms/others/SieveOfEratosthenesTest.java renamed to src/test/java/com/thealgorithms/maths/SieveOfEratosthenesTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.thealgorithms.others;
1+
package com.thealgorithms.maths;
22

33
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
44
import static org.junit.jupiter.api.Assertions.assertThrows;

0 commit comments

Comments
 (0)