Introduction - If you have any usage issues, please Google them yourself
Solve the n queens problem. To set a NN board, place N queens on a chessboard, making the N-queens do not attack each other between every two. Any two in the same column, same row, the Queen will attack each other on the same diagonal.