diff --git a/backtracking/n_queens.cpp b/backtracking/n_queens.cpp index 6da8d8679..d879795ee 100644 --- a/backtracking/n_queens.cpp +++ b/backtracking/n_queens.cpp @@ -33,7 +33,7 @@ void printSolution(const std::array, n> &board) { std::cout << "\n"; for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { - std::cout << "" << board[i][j]; + std::cout << "" << board[i][j] << " "; } std::cout << "\n"; }