refactor: change packages (#5430)

* refactor: change package

* refactor: fix name

---------

Co-authored-by: alxkm <alx@alx.com>
This commit is contained in:
Alex Klymenko
2024-08-30 11:58:24 +02:00
committed by GitHub
parent f8ff6af893
commit b0de93b3ce
10 changed files with 13 additions and 13 deletions

View File

@ -1,4 +1,4 @@
package com.thealgorithms.dynamicprogramming; package com.thealgorithms.datastructures.graphs;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.Queue; import java.util.Queue;

View File

@ -5,8 +5,8 @@ package com.thealgorithms.dynamicprogramming;
* supersequence of two given strings. The shortest supersequence is the smallest string * supersequence of two given strings. The shortest supersequence is the smallest string
* that contains both given strings as subsequences. * that contains both given strings as subsequences.
*/ */
final class ShortestCommonSuperSequenceLength { final class ShortestCommonSupersequenceLength {
private ShortestCommonSuperSequenceLength() { private ShortestCommonSupersequenceLength() {
} }
/** /**

View File

@ -1,4 +1,4 @@
package com.thealgorithms.others; package com.thealgorithms.maths;
/** /**
* Utility class for computing * Utility class for computing

View File

@ -1,4 +1,4 @@
package com.thealgorithms.others; package com.thealgorithms.maths;
import java.util.Arrays; import java.util.Arrays;

View File

@ -1,4 +1,4 @@
package com.thealgorithms.others; package com.thealgorithms.strings;
/** /**
* Implementation of KnuthMorrisPratt algorithm Usage: see the main function * Implementation of KnuthMorrisPratt algorithm Usage: see the main function

View File

@ -1,4 +1,4 @@
package com.thealgorithms.others; package com.thealgorithms.strings;
import java.util.Scanner; import java.util.Scanner;

View File

@ -1,4 +1,4 @@
package com.thealgorithms.dynamicprogramming; package com.thealgorithms.datastructures.graphs;
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals;

View File

@ -5,10 +5,10 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.CsvSource; import org.junit.jupiter.params.provider.CsvSource;
public class ShortestCommonSuperSequenceLengthTest { public class ShortestCommonSupersequenceLengthTest {
@ParameterizedTest @ParameterizedTest
@CsvSource({"AGGTAB, GXTXAYB, 9", "ABC, ABC, 3", "ABC, DEF, 6", "'', ABC, 3", "ABCD, AB, 4", "ABC, BCD, 4", "A, B, 2"}) @CsvSource({"AGGTAB, GXTXAYB, 9", "ABC, ABC, 3", "ABC, DEF, 6", "'', ABC, 3", "ABCD, AB, 4", "ABC, BCD, 4", "A, B, 2"})
void testShortestSuperSequence(String input1, String input2, int expected) { void testShortestSupersequence(String input1, String input2, int expected) {
assertEquals(expected, ShortestCommonSuperSequenceLength.shortestSuperSequence(input1, input2)); assertEquals(expected, ShortestCommonSupersequenceLength.shortestSuperSequence(input1, input2));
} }
} }

View File

@ -1,4 +1,4 @@
package com.thealgorithms.others; package com.thealgorithms.maths;
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertThrows;

View File

@ -1,4 +1,4 @@
package com.thealgorithms.others; package com.thealgorithms.maths;
import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertThrows;