Number of queens:
Display solutions as:
Solve
The n queens problem is the problem of placing n queens on a n by n chessboard so no 2 queens can attack each other.