From de5f695afadbe58d0f0015fc9030b9921f55abf1 Mon Sep 17 00:00:00 2001 From: David Leal Date: Mon, 10 Aug 2020 12:37:06 -0500 Subject: [PATCH] fix: Add spaces between numbers --- backtracking/n_queens.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; }