Skip to content

Commit f85e3e0

Browse files
committed
Fix
1 parent 8376d1e commit f85e3e0

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/main/java/com/thealgorithms/backtracking/KnightsTour.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -153,21 +153,4 @@ static boolean orphanDetected(int count, int row, int column) {
153153
}
154154
return false;
155155
}
156-
157-
/**
158-
* Prints the resulting chess board after solving the Knight's Tour.
159-
* Visited cells are displayed with their move numbers, while boundary/invalid cells are marked as "XX".
160-
*/
161-
private static void printResult() {
162-
for (int[] row : grid) {
163-
for (int i : row) {
164-
if (i == -1) {
165-
System.out.print("XX "); // Invalid cells
166-
} else {
167-
System.out.printf("%2d ", i); // Print the move number
168-
}
169-
}
170-
System.out.println();
171-
}
172-
}
173156
}

0 commit comments

Comments
 (0)