1
18kviews
Write an algorithm to solve the N-Queens problem. Show working for N=4.
1 Answer
8
1.1kviews

N-Queens problem

  • The N - Queens problem is to place N - queens in such a manner on an N x N chessboard that no queens attack each other by being in the same row, column, or diagonal.

  • Here, we solve the problem for N = 4 Queens.

  • Before solving …

Create a free account to keep reading this post.

and 2 others joined a min ago.

Please log in to add an answer.