#include<iostream>
using namespace std;
bool Left[30] = {0};
bool Right[30] = {0};
bool col[30] = {0};
void solveNQueen(int i,int n,int board[][10]){
//Base Case
if(i==n){
//Print the board
for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
cout<<(board[i][j]?'Q':'.');
}
cout<<endl;
}
cout<<endl;
return;
This file has been truncated. show original