This program solves the NQueens problem. The problem is to place N queens on N rows (N is the number of rows in the board) on the board so that no two queens can attack each other. Note that the board must be 4 x 4 (if square) at least, otherwise no solution is possible.
Source :
Source :
No comments:
Post a Comment