Skip to content

Commit e085d10

Browse files
committed
Fixed print formatting
1 parent aaad158 commit e085d10

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ public static void placeQueens(final int queens) {
6363
List<List<String>> arrangements = new ArrayList<>();
6464
getSolution(queens, arrangements, new int[queens], 0);
6565
if (arrangements.isEmpty()) {
66-
System.out.println(
67-
"There is no way to place " + queens + " queens on board of size " + queens + "x" + queens);
66+
System.out.println(" no way to place " + queens + " queens on board of size " + queens + "x" + queens);
6867
} else {
6968
System.out.println("Arrangement for placing " + queens + " queens");
7069
}

0 commit comments

Comments
 (0)