Skip to content

Commit 1b6981a

Browse files
committed
checks fixes
1 parent 4c6d209 commit 1b6981a

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

src/main/java/com/thealgorithms/matrix/MirrorOfMatrix.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public final class MirrorOfMatrix {
2020
private MirrorOfMatrix() {
2121
}
2222

23-
public static double[][] mirrorMatrix(final double[][] originalMatrix) {
23+
public static double[][] mirrorMatrix(final double[][] originalMatrix) {
2424
MatrixUtil.validateInputMatrix(originalMatrix);
2525

2626
int numRows = originalMatrix.length;
@@ -32,5 +32,5 @@ public static double[][] mirrorMatrix(final double[][] originalMatrix) {
3232
mirroredMatrix[i] = MatrixUtil.reverseRow(originalMatrix[i]);
3333
}
3434
return mirroredMatrix;
35-
}
35+
}
3636
}

src/main/java/com/thealgorithms/matrix/utils/MatrixUtil.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
*/
1212
public class MatrixUtil {
1313

14+
private MatrixUtil() {
15+
}
16+
1417
private static boolean isValid(final BigDecimal[][] matrix) {
1518
return matrix != null && matrix.length > 0 && matrix[0].length > 0;
1619
}

src/main/java/com/thealgorithms/puzzlesandgames/Sudoku.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
*/
1010
final class Sudoku {
1111

12+
private Sudoku() {
13+
}
14+
1215
/**
1316
* Checks if placing a number in a specific position on the Sudoku board is safe.
1417
* The number is considered safe if it does not violate any of the Sudoku rules:

src/main/java/com/thealgorithms/puzzlesandgames/TowerOfHanoi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Space Complexity: O(n) - Linear space complexity due to the recursion stack.
2424
* Wikipedia: https://en.wikipedia.org/wiki/Tower_of_Hanoi
2525
*/
26-
class TowerOfHanoi {
26+
final class TowerOfHanoi {
2727

2828
private TowerOfHanoi() {
2929
}

src/main/java/com/thealgorithms/puzzlesandgames/WordBoggle.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
public final class WordBoggle {
1111

12+
private WordBoggle() {
13+
}
1214
/**
1315
* O(nm * 8^s + ws) time where n = width of boggle board, m = height of
1416
* boggle board, s = length of longest word in string array, w = length of

0 commit comments

Comments
 (0)