File tree Expand file tree Collapse file tree 13 files changed +20
-33
lines changed
main/java/com/thealgorithms
matrix/matrixexponentiation
test/java/com/thealgorithms Expand file tree Collapse file tree 13 files changed +20
-33
lines changed Original file line number Diff line number Diff line change 11package com .thealgorithms .matrix .matrixexponentiation ;
22
3+ import com .thealgorithms .matrix .utils .MatrixUtil ;
34import java .math .BigDecimal ;
45import java .util .Scanner ;
56
6- import com .thealgorithms .matrix .utils .MatrixUtil ;
7-
87/**
98 * @author Anirudh Buvanesh (https://github.com/anirudhb11) For more information
109 * see https://www.geeksforgeeks.org/matrix-exponentiation/
Original file line number Diff line number Diff line change 99 */
1010final class Sudoku {
1111
12- private Sudoku () {
13- }
14-
1512 /**
1613 * Checks if placing a number in a specific position on the Sudoku board is safe.
1714 * The number is considered safe if it does not violate any of the Sudoku rules:
Original file line number Diff line number Diff line change 11package com .thealgorithms .maths ;
22
3+ import java .util .List ;
4+
35import static org .junit .jupiter .api .Assertions .assertEquals ;
46import static org .junit .jupiter .api .Assertions .assertThrows ;
5-
6- import java .util .List ;
77import org .junit .jupiter .api .Test ;
88
99import com .thealgorithms .maths .Prime .SquareFreeInteger ;
Original file line number Diff line number Diff line change 22
33import static org .junit .jupiter .api .Assertions .assertEquals ;
44import static org .junit .jupiter .api .Assertions .assertThrows ;
5-
6- import org .junit .jupiter .api .Test ;
7-
85import com .thealgorithms .maths .Prime .LiouvilleLambdaFunction ;
6+ import org .junit .jupiter .api .Test ;
97
108class LiouvilleLambdaFunctionTest {
119
Original file line number Diff line number Diff line change 22
33import static org .junit .jupiter .api .Assertions .assertFalse ;
44import static org .junit .jupiter .api .Assertions .assertTrue ;
5- import org .junit .jupiter .api .Test ;
65
76import com .thealgorithms .maths .Prime .MillerRabinPrimalityCheck ;
7+ import org .junit .jupiter .api .Test ;
88
99class MillerRabinPrimalityCheckTest {
1010 @ Test
Original file line number Diff line number Diff line change 1- package com .thealgorithms .maths ;
1+ package com .thealgorithms .maths . prime ;
22
33import static org .junit .jupiter .api .Assertions .assertEquals ;
44import static org .junit .jupiter .api .Assertions .assertThrows ;
5-
6- import org .junit .jupiter .api .Test ;
7-
85import com .thealgorithms .maths .Prime .MobiusFunction ;
6+ import org .junit .jupiter .api .Test ;
97
108class MobiusFunctionTest {
119
Original file line number Diff line number Diff line change 11package com .thealgorithms .maths .prime ;
22
3+ import com .thealgorithms .maths .Prime .PrimeCheck ;
34import org .junit .jupiter .api .Assertions ;
45import org .junit .jupiter .api .Test ;
56
6- import com .thealgorithms .maths .Prime .PrimeCheck ;
7-
87public class PrimeCheckTest {
98
109 @ Test
Original file line number Diff line number Diff line change 44import java .util .stream .Stream ;
55
66import static org .junit .jupiter .api .Assertions .assertEquals ;
7+ import com .thealgorithms .maths .Prime .PrimeFactorization ;
78import org .junit .jupiter .params .ParameterizedTest ;
89import org .junit .jupiter .params .provider .Arguments ;
910import org .junit .jupiter .params .provider .MethodSource ;
1011
11- import com .thealgorithms .maths .Prime .PrimeFactorization ;
12-
1312class PrimeFactorizationTest {
1413
1514 @ ParameterizedTest
Original file line number Diff line number Diff line change 11package com .thealgorithms .matrix ;
22
3- import java .util .Arrays ;
4- import java .util .stream .Stream ;
5-
63import static org .junit .jupiter .api .Assertions .assertEquals ;
74import static org .junit .jupiter .api .Assertions .assertThrows ;
5+
6+ import java .util .Arrays ;
7+ import java .util .stream .Stream ;
88import org .junit .jupiter .params .ParameterizedTest ;
99import org .junit .jupiter .params .provider .Arguments ;
1010import org .junit .jupiter .params .provider .MethodSource ;
Original file line number Diff line number Diff line change 11package com .thealgorithms .matrix ;
22
3+ import static org .junit .jupiter .api .Assertions .assertTrue ;
4+
5+ import com .thealgorithms .matrix .utils .MatrixUtil ;
36import java .math .BigDecimal ;
47import java .util .Objects ;
58
6- import static org .junit .jupiter .api .Assertions .assertTrue ;
79import org .junit .jupiter .api .Test ;
810
9- import com .thealgorithms .matrix .utils .MatrixUtil ;
10-
1111class MatrixUtilTest {
1212
1313 @ Test
You can’t perform that action at this time.
0 commit comments