From b8bcd82c2661cfb1bacd7c4e8e3fe87840cadb28 Mon Sep 17 00:00:00 2001 From: Sombit Bose Date: Wed, 29 Apr 2020 22:39:35 +0530 Subject: [PATCH] update --- backtracking/n_queens_all_solution_optimised.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backtracking/n_queens_all_solution_optimised.cpp b/backtracking/n_queens_all_solution_optimised.cpp index f8da31c4f..62226cd3f 100644 --- a/backtracking/n_queens_all_solution_optimised.cpp +++ b/backtracking/n_queens_all_solution_optimised.cpp @@ -1,7 +1,7 @@ #include #define n 4 -#define inc_loop(var,start,stop,step) for(int var=start;var<=stop;var+=step) -#define dec_loop(var,start,stop,step) for(int var=start;var>=stop;var-=step) +#define inc_loop(var, start, stop, step) for (int var=start; var <= stop; var+=step) +#define dec_loop(var, start, stop, step) for (int var=start; var >= stop; var-=step) void PrintSol(int Board[n][n]) {