# Python Program to Solve n-Queen Problem without Recursion

## What is n-Queen Problem?

The eight queens puzzle is the problem of placing eight chess queens on an 8×8 chessboard so that no two queens threaten each other; thus, a solution requires that no two queens share the same row, column, or diagonal. The eight queens puzzle is an example of the more general n queens problem of placing n non-attacking queens on an n×n chessboard, for which solutions exist for all natural numbers n with the exception of n = 2 and n = 3.

Problem Statement:
The n-queen problem is the problem of placing n queens on an n x n chessboard such that no queen can attack another queen.

Solution:
Python Program to Solve n-Queen Problem without Recursion

If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

## Recommended Posts:

#### Editorial Staff

Editorial Staff at FreeWebMentor is a team of professional developers.