Could you plz check my code i am not getting output for nqueen problem
hi @navin your logic is correct
there is only small mistake
for(int j=0;j<n;j++){
if(safe(board,i,j,n)){
board[i][j]==1;
bool next=nqueen(board,i+1,n);
if(next){
return true;
}
board[i][j]=0;
}
}
in line no 55 (highlighted line) instead of double equal to it should be simply equal to 