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]) {