Count unique arrangements of n queens on an n×n chessboard with no two attacking each other.
Constraints
Example
>>> n_queens_count(1) 1 >>> n_queens_count(4) 2 >>> n_queens_count(8) 92
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints